ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.8k stars 2k forks source link

Sourceport detection broken. #227

Open Dementei opened 10 years ago

Dementei commented 10 years ago

I'm just going to dive into an example: There are two servers on the same network, one is running the 2007 SDK and the other is 2013. The 2007 server is running through sourceport 26901, if the 2013 server starts up it will use sourceport 26901 too, although it is already being used by the 2007 server. 2013 does not detect that it's in use and does not change to 26902 like it should (in 2007 it changes sourceports correctly) so unfortunately it will not show up on the Internet server list in-game and will give out an error like this one after typing status: version : 12345678/12 12345678 insecure (secure mode enabled, disconnected from Steam3)

Since 26901 is in use, communication with VAC has been cut off to the server which in result is another blank spot in the browser.

Direct IP connection does work, you can also add to favorites and view in history, but will not show up in the Internet tab in-game.

Now if it was two 2013 servers they would actually fight for one sourceport, the one who connects first is the winner, the other server will be lost in the void of the interwabs.

abl1 commented 10 years ago

The same problem, after TF2 update at 07 feb 2014. I have 3 TF2 servers, working months without config change, but currently, after update, I have problem with one server - permanent error "Could not establish connection to Steam servers. (Result = 3)". After netstat -lpn I have:

server 1

netstat -lpn | grep 3713

tcp 0 0 91.121.153.46:27015 0.0.0.0:* LISTEN 3713/./srcds_linux udp 0 0 91.121.153.46:26901 0.0.0.0:* 3713/./srcds_linux udp 0 0 91.121.153.46:27005 0.0.0.0:* 3713/./srcds_linux udp 576 0 91.121.153.46:27015 0.0.0.0:* 3713/./srcds_linux udp 2304 0 91.121.153.46:27020 0.0.0.0:* 3713/./srcds_linux

server 2

netstat -lpn | grep 23672

tcp 0 0 0.0.0.0:27016 0.0.0.0:* LISTEN 23672/./srcds_linux udp 0 0 0.0.0.0:26902 0.0.0.0:* 23672/./srcds_linux udp 0 0 0.0.0.0:27007 0.0.0.0:* 23672/./srcds_linux udp 0 0 0.0.0.0:27016 0.0.0.0:* 23672/./srcds_linux udp 0 0 0.0.0.0:27022 0.0.0.0:* 23672/./srcds_linux

server 3 netstat -lpn | grep 28692 tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 28692/./srcds_linux udp 0 0 0.0.0.0:26901 0.0.0.0:* 28692/./srcds_linux udp 0 0 0.0.0.0:27006 0.0.0.0:* 28692/./srcds_linux udp 0 0 0.0.0.0:27021 0.0.0.0:* 28692/./srcds_linux udp 0 0 0.0.0.0:27017 0.0.0.0:* 28692/./srcds_linux

so, both # 1 and # 3 use the same port - 26901. And the VAC error is at server #3. restart, stop and restart, adding "-sourceport 26903" doesn't help