Author Topic: Problem with registering in lobby  (Read 4193 times)

0 Members and 1 Guest are viewing this topic.

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Problem with registering in lobby
« on: April 10, 2014, 07:09:54 pm »
Hi,

I am testing new VPS and my server is not visible in lobby :/
I have one question - how (port, protocol) server is communicating with lobby ?

Please help :)

Best regards,
Szaman.

Some technical info:
My IP: 37.187.180.142, server port: 23073, debug level=2 (server is available for playing)
soldat.ini -> Lobby_IP=rr.soldat.pl (was empty on the begining)
--------------------------
root@vps57415(...)# cat lobby_servers.txt
rr.soldat.pl
defaultlobby.soldat.pl
(there was only rr.soldat.pl on the begining)
--------------------------
root@vps57415:~# netstat -nlp | grep soldat
tcp        0      0 0.0.0.0:23073           0.0.0.0:*               LISTEN      6091/soldatserver
tcp        0      0 0.0.0.0:23083           0.0.0.0:*               LISTEN      6091/soldatserver
udp        0      0 0.0.0.0:23196           0.0.0.0:*                           6091/soldatserver
udp        0      0 0.0.0.0:23073           0.0.0.0:*                           6091/soldatserver
--------------------------
root@vps57415:~# ping rr.soldat.pl
PING rr.soldat.pl (67.23.118.179) 56(84) bytes of data.
64 bytes from 67.23.118.179: icmp_req=1 ttl=49 time=92.3 ms
64 bytes from 67.23.118.179: icmp_req=2 ttl=49 time=94.3 ms
64 bytes from 67.23.118.179: icmp_req=3 ttl=49 time=92.3 ms
--------------------------
root@vps57415:~# iptables -L -v
Chain INPUT (policy ACCEPT 40562 packets, 29M bytes)
 pkts bytes target     prot opt in     out     source               destination
34257   29M fail2ban-ssh  tcp  --  any    any     anywhere             anywhere             multiport dports ssh

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 30431 packets, 2399K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain fail2ban-ssh (1 references)
 pkts bytes target     prot opt in     out     source               destination
34257   29M RETURN     all  --  any    any     anywhere             anywhere
--------------------------
traceroute to rr.soldat.pl (67.23.118.179), 30 hops max, 60 byte packets
 1  200.ip-37-187-244.eu (37.187.244.200)  0.043 ms  0.012 ms  0.012 ms
 2  178.33.100.139 (178.33.100.139)  1.333 ms  1.344 ms  1.478 ms
 3  fra-5-6k.fr.eu (91.121.128.83)  3.130 ms * *
 4  rbx-g2-a9.fr.eu (178.33.100.244)  13.503 ms  13.656 ms  13.769 ms
 5  * ldn-5-6k.uk.eu (91.121.131.182)  14.683 ms *
 6  * * *
 7  ae1.mpr2.lhr2.uk.above.net (64.125.27.149)  17.928 ms  40.039 ms  19.001 ms
 8  ae4.cr1.dca2.us.above.net (64.125.20.73)  95.377 ms  95.331 ms  94.699 ms
 9  ae1.er1.iad10.us.above.net (64.125.31.206)  92.123 ms  92.522 ms  92.048 ms
10  ae4.er5.iad10.us.above.net (64.125.22.65)  97.422 ms  97.117 ms  148.073 ms
11  64.125.170.2.available.above.net (64.125.170.2)  92.227 ms  93.645 ms  91.898 ms
12  67.23.108.66 (67.23.108.66)  91.428 ms  91.413 ms  89.730 ms
13  te2-1.rsx.a01.yellowfiber.net (67.23.107.234)  111.585 ms  93.108 ms  90.771 ms
14  67.23.118.179 (67.23.118.179)  93.555 ms  92.510 ms  92.395 ms
--------------------------
Output of the server:

             -= Soldat Dedicated Server 1.6.6 - 2.7.6 =-

----------------------------------------------------------------
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.devs @ irc.quakenet.org

   ---> http://forums.soldat.pl/

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -k PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -k "my pass"


 Compiled with FreePascal (Indy 10)

 Hit CTRL+C to Exit
 Please command the server using the Soldat Admin program
Welcome to Soldat 1.6.6
 Server name: !  [rG] New DM
 Server PID: 9642
 
  • Preparing scripts to be launched
  • Done

---------------------------------------------------Admin connected (83.13.241.189).
/maxplayers (83.13.241.189)
Max players is 32
/maxrespawntime (83.13.241.189)
Maximum Respawn time is 4 seconds
/respawntime (83.13.241.189)
Respawn time is 3 seconds
/limit (83.13.241.189)
Current kill/point/capture limit is 30
/timelimit (83.13.241.189)
Current time limit is 10 minutes
/friendlyfire (83.13.241.189)
Friendly Fire is 0
/scripting (83.13.241.189)
Scripting is currently Enabled (1)
/balance (83.13.241.189)
Bot Balance is off (0)
/bonus (83.13.241.189)
Current -------------
ctf_Ash by chakapoko maker
 Server IP: 0.0.0.0 Port: 23073
 ASE Port: 23196
 Connection for file server started. Port: 23083
Registering server @ ASE Master Server
>>> LobbyServer NSList
>>> LobbyServer Round-Robin DNS Resolve
DNS Svr: 127.0.
(yes, it's trimmed here)
« Last Edit: April 10, 2014, 07:25:48 pm by Szaman »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Problem with registering in lobby
« Reply #1 on: April 10, 2014, 07:27:01 pm »
For lobby to work, the soldatserver needs to make *outgoing* TCP connects to 67.23.118.179 at port 13073. That is it.

You can test if that connection goes through by 'telnet 67.23.118.179 13073'.

When you first start the soldatserver up, you can run 'tcpdump dst port 13073' to watch it try connecting and sending details to the lobby server.

What does the server say when you start it? It usually says something like "server registered in lobby." Do you have lobby_register (or osmething like that) set to 1 in soldat.ini?

You can try replacing the contents of lobby_servers.txt with just the IP (67.23.118.179) to see if it's some intermittent DNS resolution issue.
There are other worlds than these

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Problem with registering in lobby
« Reply #2 on: April 10, 2014, 07:29:44 pm »
Yeah, solved :)

jrgp, thanks :)

It was DNS issue.
I've edited /etc/resolv.conf -> added 8.8.8.8 as the first nameserver
After soldat restart it wrote on output:
             -= Soldat Dedicated Server 1.6.6 - 2.7.6 =-

----------------------------------------------------------------
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.devs @ irc.quakenet.org

   ---> http://forums.soldat.pl/

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -k PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -k "my pass"


 Compiled with FreePascal (Indy 10)

 Hit CTRL+C to Exit
 Please command the server using the Soldat Admin program
Welcome to Soldat 1.6.6
 Server name: !  [rG] New DM
 Server PID: 9680
 
  • Preparing scripts to be launched
  • Done

---------------------------------------------------Admin connected (83.13.241.189).
/maxplayers (83.13.241.189)
Max players is 32
/maxrespawntime (83.13.241.189)
Maximum Respawn time is 4 seconds
/respawntime (83.13.241.189)
Respawn time is 3 seconds
/limit (83.13.241.189)
Current kill/point/capture limit is 30
/timelimit (83.13.241.189)
Current time limit is 10 minutes
/friendlyfire (83.13.241.189)
Friendly Fire is 0
/scripting (83.13.241.189)
Scripting is currently Enabled (1)
/balance (83.13.241.189)
Bot Balance is off (0)
/bonus (83.13.241.189)
Current -------------
ctf_Ash by chakapoko maker
 Server IP: 0.0.0.0 Port: 23073
 ASE Port: 23196
 Connection for file server started. Port: 23083
Registering server @ ASE Master Server
>>> LobbyServer NSList
>>> LobbyServer Round-Robin DNS Resolve
DNS Svr: 8.8.8.>>> TThread.DoLobbyStuff.Connected
>>> TThread.DoLobbyStuff.Sent ()


And the server is now visible in lobby :)

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Problem with registering in lobby
« Reply #3 on: April 10, 2014, 07:33:13 pm »
But it's kinda strange...

As you can see in the "technical info" provided in the first post - the rr.soldat.pl and defaultlobby.soldat.pl was resolved correctly. Why Soldat had problems with that?

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Problem with registering in lobby
« Reply #4 on: April 10, 2014, 08:18:40 pm »
As you can see in the "technical info" provided in the first post - the rr.soldat.pl and defaultlobby.soldat.pl was resolved correctly. Why Soldat had problems with that?

Just because ping/traceroute/dig/host/etc work does not necessarily mean that a normal program will, depending how the program interprets the results of the getaddrinfo call.
« Last Edit: April 10, 2014, 08:21:59 pm by jrgp »
There are other worlds than these

Offline darDar

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 794
    • #Soldat Gather - Community on Discord
Re: Problem with registering in lobby
« Reply #5 on: April 10, 2014, 09:01:49 pm »
Quote
soldat.ini -> Lobby_IP=rr.soldat.pl (was empty on the begining)
You can leave that emtpy anyway
Soldat Gather 'Matchmaking Community on Discord'

gather.soldat.pl

| My Maps: ctf_Pyramid, ctf_Replay, ctf_Blako, ctf_R6, ctf_Ntex, ctf_Caro, ctf_Bizar & vs_mode mappack |

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Problem with registering in lobby
« Reply #6 on: April 10, 2014, 09:30:11 pm »
@darDar: I know that it's working without that value. But... by the way, what does it stands for? You have this lobby_servers.txt file for providing lobby addresses... so why there is redundant option in soldat.ini ?

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Problem with registering in lobby
« Reply #7 on: April 10, 2014, 09:37:02 pm »
@darDar: I know that it's working without that value. But... by the way, what does it stands for? You have this lobby_servers.txt file for providing lobby addresses... so why there is redundant option in soldat.ini ?

"Legacy". Taking the option out of soldat.ini might throw off things that parse the ini file based on line numbers rather than keys.
There are other worlds than these