04-26-2009, 08:54 PM
Hi, I'm trying to setup a dedicated L4D server.
I start the server with
The server appears as a group server in left4dead, but when I try to connect it fails. Opening console reveals that it's trying to connect to the wrong port:
I tried setting up my server on different ports, but it always tries to connect on 11676, which I haven't specified anywhere and it doesn't even listen on it:
Connecting to it from console with "connect my.internet.ip.address:44444" works, connecting from lobby with "ms_force_dedicated_server my.internet.ip.address:44444" somehow worked once and then stopped working and using sv_search_key fails most likely because of this misreported port.
Where does this port come from?
Code:
# cat server.cfg
hostname "myhostname"
sv_contact "not_public@nowhere.com"
rcon_password "my_rcon_password"
motd_enabled 0
sv_region 3
mp_disable_autokick 1
log on
sv_log_onefile 1
sv_logbans 1
sv_logecho 0
sv_allow_lobby_connect_only 0
heartbeat
sv_search_key "my_search_key"
sv_steamgroup 123456
sv_steamgroup_exclusive 0
Code:
RDTSC_FREQUENCY="2405.000000" ./srcds_run l4d -autoupdate +ip my.internet.ip.address +port 44444 +exec server.cfg
The server appears as a group server in left4dead, but when I try to connect it fails. Opening console reveals that it's trying to connect to the wrong port:
Code:
Connecting to public(my.internet.ip.address:11676)
Sending UDP connect to public IP my.internet.ip.address:11676
Code:
# netstat -aonp | grep srcds
tcp 0 0 my.internet.ip.address:44444 0.0.0.0:* LISTEN 16605/srcds_i486 off (0.00/0/0)
udp 0 0 my.internet.ip.address:27020 0.0.0.0:* 16605/srcds_i486 off (0.00/0/0)
udp 0 0 my.internet.ip.address:26901 0.0.0.0:* 16605/srcds_i486 off (0.00/0/0)
udp 0 0 my.internet.ip.address:44444 0.0.0.0:* 16605/srcds_i486 off (0.00/0/0)
udp 0 0 my.internet.ip.address:27005 0.0.0.0:* 16605/srcds_i486 off (0.00/0/0)
Where does this port come from?