Left 4 Dead 2

Left 4 Dead 2

View Stats:
Churo Zan Nov 26, 2022 @ 6:56am
How to make a dedicated server left 4 dead 2
Hi yes i need help i have everything downloaded from steamcmd and have my server files for left 4 dead 2. I port forwarded ports 27000/27050 and i checked them using the open port tools and their working well at least the server side ones 27015... When i get into the main menu i see my server and its a public game but i try looking for it in multiplayer its not there and it seems no one can ever join even tho its a public game... i tried using just srcds regular application and the create short cut and edit the properties for the map and port start up in cmd they both worked with open ports i checked but yet still dont see my server nor can anyone join across the world. Here is my server.cfg file i got from the internet

// Located in: \l4d2_ds\left4dead2\cfg
//Base
hostname "JesusIsKing"
sv_search_key "Jesus"
sv_password "" // Password protects server
rcon_password "JesusIsKing"



sv_allow_lobby_connect_only "0"
hostfile "my_host.txt" //create custom hostfile else the
//file will be overwritten after every update

mp_disable_autokick "1"
sv_alltalk "0"
sv_consistency "1" // 1=Allow custom skins
//sv_contact "address@email.com"
sv_voiceenable "1"
sv_region "255" //sets region to all areas

sv_allow_lobby_connect_only "0"


//Logs etc
sv_log_onefile "0"
sv_logbans "1"
sv_lan "0"
sv_pure "1"
sv_cheats "0"

//sv_gametypes "coop,versus,survival,scavenge" //sets gametypes
//sv_unlag "1"
//sv_maxunlag "5"

sv_steamgroup "000" //this is your group's steam group id. This option works with or without the quotes.
//sv_steamgroup_exclusive "1" //to make it exclusive and private

z_difficulty impossible




And yes i spent days looking online and through forums and youtube videos and still no solution plz help if you can tthank you!!!
< >
Showing 1-3 of 3 comments
**DeiRowtag Nov 26, 2022 @ 7:00am 
If the issue if the following: no one can join

it can onl come from two things:

-allow the srcds.exe in the firewall
-port forwarding isn't right

for port forwarding i do recommend to open 27015 in TCP/UDP and 27016 in TCP/UDP this is all you need for 1 server.

here you can get more information in this full guide step by step in case some more issue come

https://steamcommunity.com/sharedfiles/filedetails/?id=2072453781
Last edited by **DeiRowtag; Nov 26, 2022 @ 7:00am
Juniper Nov 26, 2022 @ 8:13am 
Hi Thread maker,


All you need is a single UDP port of choice (default: 27015). TCP is for remote console command execution, but the built-in RCON from SRCDS has some security issues and seeing that you're hosting a home instance I recommend you turn it off by removing the line in your server.cfg that says rcon_password.

Make sure server traffic is allowed to pass through every firewall you may have (OS, router, anti-virus).

You can use your external IP and port of choice to test out whether you can successfully establish connection. Unsuccess means your port forwarding is incorrect.

The console variable sv_steamgroup_exclusive is necessary to be set to 0 in order to ensure pubs can join your server instance using the built-in matchmaking lottery (via Main Menu).

The server can also be found and connected to using the server browser (openserverbrowser in client console). There is a launch parameter you can attach to your script file -nomaster which prevents your server from being listed on the Valve Master server list.

Please keep in mind that by joining the server without creating a lobby first, pubs cannot join using matchmaking, only via direct connect with your IP address.

The command for direct connection is: connect <IP>:<Port> in the console of your L4D2 client instance. If the port is the default (27015), you do not need to specify it, only the IP.

Check whether a server is "open" to connections
  1. Close Steam runtime. Launch the server instance.
  2. Start Steam, then run the client instance.
  3. Fetch a lobby for your server. You can do this in two ways:

    - Choose Official Dedicated or Best Available Dedicated, enter mm_dedicated_force_servers <external_ip>:<port> in your client console. Click Start match.

    - Choose Steam Group Server and then click Start match. You will be prompted a menu for available servers of your steam group. By default L4D2 is set to discover LAN games, therefore people often can see their server listed as a steam group server. Select your server and then you will connect.

    Both of these methods work assuming your ports are forwarded, sv_steamgroup_exclusive is either 0 or 1 and you have selected Public Game in the lobby settings.

Note: Hosting SRCDS counts as playing L4D2 if Steam is opened.
You must either:
  • Close Steam every time you intend to host the server.
  • Or Launch L4D2 first and then launch SRCDS.


Cheers,
June
Last edited by Juniper; Nov 26, 2022 @ 8:31am
Churo Zan Nov 26, 2022 @ 9:00am 
Thanks so much yall i got it to work i really appreaciate your help <3
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Nov 26, 2022 @ 6:56am
Posts: 3