L4D2 Server

Associate
Joined
1 Apr 2009
Posts
429
Ok Folks.

Been playing L4D2 solidly all evening and my eyes are starting to bleed. It's such an awesome game. :D

My friends and I had a few issues getting on a decent dedicated server so I thought I would give setting one up a bash now. I have a fairly competent rig in my living room which should do the job.
My ADSL upload speed is also about 2.2mbps which should cover a 4 player campaign game.

I have used SRCDS before to play around with servers, so will go set that to download the L4D2 dedicated server files now. I was hoping someone on here had a decent server.cfg that they have tested that I could copy in once it has downloaded, or any useful cvars that will work nicely in this new game.

If so, post below :)

Many Thanks.
 
I could upload you one, but I don't know how different it would be for home run dedicated servers.

Why don't you just go into console, before making a lobby and type: sv_search_key ocuk and use one of our servers?
 
If you could upload or email me the server.cfg that would be a great help LinktoInsanity :)
My email is in my trust.

I will hop on the OCUK ones for sure, but would love to have the option of running my own for when the situation calls for it. Plus I'm hosting a lan party round here in a couple of weeks, may be a good idea to have a DS running in time for that.

Thanks
 
Thanks for the links. Haven't seen those guides yet.

The server is downloading now.. looks like the downloads going to be an all nighter though, it's massive.
 
OK server is up and running.

I'm having trouble getting the sv_search_key to work though :(

I have set it in the server.cfg, but when I move to my client and type it into the console and then try to host a lobby game all it does it host on my client pc rather than the dedi box.

Any ideas?
 
I presume you've double-checked that you can direct connect to the server okay?

Assuming that you can, try stripping out *everything* bar the search key from your server config. If this works you can then try adding back options one by one until you find the culprit.

Let us know how it goes :)
 
I've made the server.cfg fairly basic:

hostname dreadserver
rcon_password ****

mp_disable_autokick 1 //disables autokick=1
sv_allow_wait_command 0
sv_alltalk 1
sv_alternateticks 0
sv_clearhinthistory 0
sv_consistency 1
sv_pausable 1
sv_voiceenable 1
sv_cheats 0
sv_forcepreload 1
sv_pure_kick_clients 0

hostport 27016
sv_lan 0 // enable LAN = 1; disable LAN = 0
sv_region 3
sv_allow_lobby_connect_only 1 //enable/disable Lobby connections 1/0
sv_search_key dreadserver
sv_log_onefile 0
sv_logbans 1
sv_logecho 0
sv_logfile 1
sv_logflush 0
sv_logsdir logs

sv_minrate 5000
sv_maxrate 9999
sv_maxcmdrate 101
cl_updaterate 101
rate 30000

-----------------

Also the start batch is as follows:

c:\HLserver\left4dead2\srcds.exe -console -game left4dead2 +hostip 78.86.233.87 -ip 192.168.1.66 +hostport 27016 +clientport 27006 +exec server.cfg +map c5m1_waterfront



I have forwarded the port 27016 to the dedicated server, but when I try to connect using the search key I still end up hosting on my gaming rig :(
 
This is mine..

srcds.exe -autoupdate -console -game left4dead2 +ip 66.151.138.37 +hostport 27019 -tickrate 66 -nocrashdialog -debug +map c1m1_hotel.bsp

Do you need both hostip, ip and hostport and clientport?
 
This is mine..

srcds.exe -autoupdate -console -game left4dead2 +ip 66.151.138.37 +hostport 27019 -tickrate 66 -nocrashdialog -debug +map c1m1_hotel.bsp

Do you need both hostip, ip and hostport and clientport?

On linux I've found it to be a bit funny if I don't include host and client port...but I seem to recall it being more forgiving with windows. Could be wrong though.
 
still no luck.

I've tried your startup batch Viper2, replacing your ip with mine:

c:\HLserver\left4dead2\srcds.exe -autoupdate -console -game left4dead2 +ip 78.86.233.87 +hostport 27016 -tickrate 66 -nocrashdialog -debug +map c1m1_hotel.bsp

My server console gives me some errors though.. perhaps one of you could make sense of it?

23.5 fps 0/18 on map c1m1_hotel
#Console initialized.
#***VPK: FastFindFile Attempting to use full path with VPK file!
File: c:\hlserver\left4dead2\left4dead2\addonlist.txt
#Game.dll loaded for "Left 4 Dead 2"
Server is hibernating
ConVarRef test_progression_loop doesn't point to an existing ConVar
Game supporting (2) split screen players
maxplayers set to 18
***VPK: FastFindFile Attempting to use full path with VPK file!
File: c:\hlserver\left4dead2\left4dead2\addonlist.txt
Unknown command "mat_bloom_scalefactor_scalar"
NET_GetBindAddresses found 192.168.1.66: 'Realtek RTL8168B/8111B Family PCI-E Gi
gabit Ethernet NIC (NDIS 6.0)'
WARNING: NET_OpenSocket: bind: WSAEADDRNOTAVAIL
Trying to open socket on 192.168.1.66
Socket bind failed (WSAEADDRNOTAVAIL)
Network: IP 78.86.233.87, mode MP, dedicated Yes, ports 27016 SV / 0 CL
---- Host_NewGame ----
Host_NewGame on map c1m1_hotel
Executing dedicated server config file
Couldn't find any entities named fire13_timer, which point_template fire13_templ
ate is specifying.
Couldn't find any entities named fire13_clip, which point_template fire13_templa
te is specifying.
Couldn't find any entities named fire13_smoke, which point_template fire13_templ
ate is specifying.
Couldn't find any entities named fire13_fog_volume, which point_template fire13_
template is specifying.
Couldn't find any entities named fire14_timer, which point_template fire14_templ
ate is specifying.
Couldn't find any entities named fire14_clip, which point_template fire14_templa
te is specifying.
Couldn't find any entities named fire14_smoke, which point_template fire14_templ
ate is specifying.
Couldn't find any entities named fire14_fog_volume, which point_template fire14_
template is specifying.
Couldn't find any entities named fire15_timer, which point_template fire15_templ
ate is specifying.
Couldn't find any entities named fire15_clip, which point_template fire15_templa
te is specifying.
Couldn't find any entities named fire15_smoke, which point_template fire15_templ
ate is specifying.
Couldn't find any entities named fire15_fog_volume, which point_template fire15_
template is specifying.
Couldn't find any entities named fire16_timer, which point_template fire16_templ
ate is specifying.
Couldn't find any entities named fire16_clip, which point_template fire16_templa
te is specifying.
Couldn't find any entities named fire16_smoke, which point_template fire16_templ
ate is specifying.
Couldn't find any entities named fire16_fog_volume, which point_template fire16_
template is specifying.
Couldn't find any entities named sound, which point_template fire_ballroom_07-te
mplate is specifying.
Couldn't find any entities named fire03-sound, which point_template fire03-templ
ate is specifying.
Couldn't find any entities named fire04-sound, which point_template fire04-templ
ate is specifying.
Couldn't find any entities named fire10-sound, which point_template fire10-templ
ate is specifying.
Couldn't find any entities named fire27-sound, which point_template fire27-templ
ate is specifying.
Couldn't find any entities named fire28-sound, which point_template fire28-templ
ate is specifying.
Couldn't find any entities named fire_ballroom_02-sound, which point_template fi
re_ballroom_02-template is specifying.
Couldn't find any entities named fire_ballroom_01-sound, which point_template fi
re_ballroom_01-template is specifying.
Couldn't find any entities named fire_ballroom_03-sound, which point_template fi
re_ballroom_03-template is specifying.
Couldn't find any entities named fire_ballroom_04-sound, which point_template fi
re_ballroom_04-template is specifying.
Couldn't find any entities named fire_ballroom_05-sound, which point_template fi
re_ballroom_05-template is specifying.
Couldn't find any entities named fire_ballroom_06-sound, which point_template fi
re_ballroom_06-template is specifying.
Couldn't find any entities named fire_ballroom_07-particles, which point_templat
e fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point1, which point_template f
ire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point3, which point_template f
ire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point5, which point_template f
ire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point6, which point_template f
ire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-hurt, which point_template fir
e_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-sound, which point_template fi
re_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_08-sound, which point_template fi
re_ballroom_08-template is specifying.
Couldn't find any entities named fire_ballroom_09-sound, which point_template fi
re_ballroom_09-template is specifying.
Couldn't find any entities named fire_ballroom_10-sound, which point_template fi
re_ballroom_10-template is specifying.
Couldn't find any entities named fire_ballroom_11-sound, which point_template fi
re_ballroom_11-template is specifying.
Couldn't find any entities named inferno02-sound, which point_template inferno02
-template is specifying.
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.
mdl) with no door_options! Verify that SKIN is valid, and has a corresponding op
tions block in the model QC file
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.
mdl) with no door_options! Verify that SKIN is valid, and has a corresponding op
tions block in the model QC file
WARNING: orator at 454 5671 2684 missing modelname
Attempting to precache model, but model name is NULL
Commentary: Loading commentary data from maps/c1m1_hotel_commentary.txt.
Initializing Director's script
steamservice.cpp (229) : Assertion Failed: BOpenService failed (1060)
CreateBoundSocket: ::bind returned Win32 error 10049
cminterface.cpp (687) : Assertion Failed: 0 != m_hConnection
Adding master server 72.165.61.189:27011
Adding master server 68.142.72.250:27011

---------

could it be something to do with the socket bind failed?
 
Last edited:
Question/Problem: WSAEADDRNOTAVAIL (10049) Cannot assign requested address.

Answer/Solution: Normally results from an attempt to create a socket with an address not on this machine.

Edit: You sure that port is not already in use? Shut down the server and use "netstat -na" from a cmd promp and check something else is not open on it.

You might be able to specify 0 as the port and the OS will pick a free one for you
 
Last edited:
The server IP is defo 192.168.1.66

The port is not listed as being in use if I have the server running or not.

I am going to try a different port to see if that helps.

I have also disabled all firewalls on both the router and the server.
 
Back
Top Bottom