Author Topic: Cannot join soldatserver via 127.0.0.1  (Read 3455 times)

0 Members and 1 Guest are viewing this topic.

DarkCrusade

  • Guest
Cannot join soldatserver via 127.0.0.1
« on: May 29, 2013, 05:23:51 am »
Hello,

I am used to being able to join the soldatserver on my own desktop (via 127.0.0.1), and until this moment, I was able to just start the soldatserver and join the server no matter whether I forwarded the ports. I attached my settings. Could someone help me?

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Cannot join soldatserver via 127.0.0.1
« Reply #1 on: May 29, 2013, 07:34:42 am »
Perhaps you launch client before launching the server. In this case, client reserves 23073 port for it's own non-dedicated server successfully blocking server form binding to that port.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

DarkCrusade

  • Guest
Re: Cannot join soldatserver via 127.0.0.1
« Reply #2 on: May 29, 2013, 10:31:59 am »
Nope, always starting server first!

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Cannot join soldatserver via 127.0.0.1
« Reply #3 on: May 29, 2013, 11:41:34 am »
After you start the server, run 'netstat -a -n' in Windows' cmd.exe. See if it lists the server's ports listening.
There are other worlds than these

DarkCrusade

  • Guest
Re: Cannot join soldatserver via 127.0.0.1
« Reply #4 on: May 29, 2013, 03:16:31 pm »
My server's IP: 192.168.43.5 Port: 23073
Lobby server: 67.23.118.179

I could not find the server's port on the list, but I found the lobby server (67.23.118.179:13073), and there is a port 23073 in UDP protocol. However, its local address is 0.0.0.0 ...

I guess your answer will be that I need to forward the ports. Is there a tutorial for how to do it when you use your smartphone as a wireless router?

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Cannot join soldatserver via 127.0.0.1
« Reply #5 on: May 29, 2013, 05:37:18 pm »
I guess your answer will be that I need to forward the ports. Is there a tutorial for how to do it when you use your smartphone as a wireless router?

No. The *only* time you forward ports is when you want people to connect to a server that is behind a firewall (router).

I could not find the server's port on the list, but I found the lobby server (67.23.118.179:13073), and there is a port 23073 in UDP protocol. However, its local address is 0.0.0.0 ...

That lobby server likely means the server itself is sending itself to the lobby server.

The local address being 0.0.0.0:23073 means that's the Soldat server listening properly for connections.

I don't see why this isn't working for you.
There are other worlds than these

Offline shay

  • Major(1)
  • Posts: 21
Re: Cannot join soldatserver via 127.0.0.1
« Reply #6 on: May 29, 2013, 09:51:46 pm »
But you have to connect to the internal IP address if you have a router!
Example I have (10.0.0.1,10.0.0.2,10.0.0.3...etc) depending on how many we are not connected people.
And use default port 23073

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Cannot join soldatserver via 127.0.0.1
« Reply #7 on: May 30, 2013, 12:47:49 am »
But you have to connect to the internal IP address if you have a router!
Example I have (10.0.0.1,10.0.0.2,10.0.0.3...etc) depending on how many we are not connected people.
And use default port 23073

He's saying that he wants to connect to his locally running Soldat server on the same machine he's on. This does not involve touching his router at all. It may be possible that Windows Firewall is preventing any connections to the running Soldat server, but I don't believe this is the case.

All he should be doing is trying to connect to 127.0.0.1 on port 23073 from within his game client himself.
There are other worlds than these

DarkCrusade

  • Guest
Re: Cannot join soldatserver via 127.0.0.1
« Reply #8 on: May 30, 2013, 02:02:45 am »
I cannot even get the local server to show up in the lobby. It shows up in the big list (ping = 99999, of course) but when I try to load the local one, a message box pops up saying "Could not connect to lobby server"

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Cannot join soldatserver via 127.0.0.1
« Reply #9 on: May 30, 2013, 09:18:42 pm »
I cannot even get the local server to show up in the lobby. It shows up in the big list (ping = 99999, of course) but when I try to load the local one, a message box pops up saying "Could not connect to lobby server"

If you try joing to your server entry in the main server list, it is definitely going to fail unless you have your ports forwarded, and even then it might not work. I don't know if the local LAN browser actually works or not.

Can you open up Windows Firewall and see if you can add an entry for soldatserver.exe and give it all the listening/access privileges? My only guess is that something is blocking access to it and you didn't notice / clicked deny on the Firewall prompt window if one came up.
There are other worlds than these