Client no longer connecting to server

Hello Chris,

I just updated to the new version, 0.8, and I cannot connect to the server anymore when I start the client. Cursor rotates for a bit showing loading in progress and then nothing happens. Any idea how to fix that?
Just a quick update, version 0.7 works after downgrading.

Cheers,
Beshoy

Hi Beshoy,

MWServer’s default listening address is now “localhost” (instead of 127.0.0.1). Be sure that you enter “localhost” in MWClient’s URL field when connecting.

Chris

Hello Chris,
I tried replacing the old address with “localhost” with no success.
Cheers,
Beshoy

Hi Beshoy,

I tried replacing the old address with “localhost” with no success.

Just to be clear, you shouldn’t include the quotes, just the text localhost. I’ve attached images showing how it should look in both client and server.

If it still doesn’t work, a few questions:

  • Was the old address 127.0.0.1?
  • In MWServer’s network settings, is “Listening address” set to localhost?
  • Are you running MWClient and MWServer on the same machine?

Chris

Attachments:

Hi Chris,
Thanks for the reply. I tried using 127.0.0.1 for both server and client and now it works for 0.8. is this ok or is there a problem with using this ip?!
For localhost, yes, I put it without the quotes. To answer your questions:

  1. yes it was
  2. yes i put localhost in the listening address as well
    3)yes same machine

Cheers,
Beshoy

I tried using 127.0.0.1 for both server and client and now it works for 0.8. is this ok or is there a problem with using this ip?!

That’s totally fine. Using localhost is nominally better, because it can refer to either an IPv4 or IPv6 address, whereas 127.0.0.1 is strictly IPv4. But 127.0.0.1 still works the same as it always did.

yes i put localhost in the listening address as well

Do you mean you had to change the listening address to localhost? If so, what was it before you changed it? Did you restart MWServer after changing it?

Chris

Hi Chris,
When i did a clean install of version 0.8, the url in the client was 127.0.0.1 and in the server listening address “localhost” by default.

Cheers,
Beshoy

OK, thanks for the additional info. I still can’t guess why setting the address to “localhost” in both places didn’t work, but it’s probably not worth investigating further.

Cheers,
Chris

Hi Chris,
Indeed, as long as it worked, that’s fine by me. I might do a system restore or something at some point in the future to see if it’s resolved, but for now, it works.
Thanks,
Cheers,
Beshoy