Fix to not use localhst when on a remote server