Raised This Month: $89 Target: $400
 22% 

[L4D2] How to run and join local dedicated server (Windows)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 07-15-2019 , 15:47   [L4D2] How to run and join local dedicated server (Windows)
Reply With Quote #1

Written in hope to help some people to test their plugins locally* because Valve did it the way required a bottle of Vodka for everything to work properly.

* I didn't try to join my server from Internet (just locally - me is server and me is client). That is possibly, require port forwarding. Search on your own.

So,

1. Steam => Library => Tools => Double click on "Left 4 Dead 2 Beta - Win32 Dedicated Server".
2. After downloading, right click on it => Properties => Local files => See local files ...
- Copy all files from "common\Left 4 Dead 2 Beta" to "common\Left 4 Dead 2".
- Copy dedicated.dll to "bin" folder.

3. Create batch (runserver.bat) file (in "common\Left 4 Dead 2" folder) with the following code:
Code:
start "" srcds -debug -condebug -usercon -console -insecure -dev -game left4dead2 -port 27000 +hostname "Source Dedicated Server" +map c5m1_waterfront +maxplayers 24 +sv_lan 1
3. Donwnload SteamCMD GUI tool and run it: https://github.com/DioJoestar/SteamCMD-GUI
Open "Console" tab. Remember IP in line "Local IP address:"

4. This is important. You must start L4d2 client first (before the server).

5. Run server by double click on "runserver.bat"
Approve srcds.exe access in your firewall. Windows firewall will show you a warning automatically.

6. In L4D2 client enter in console:
Code:
connect IP:27000
where IP are numbers from the step 3. It could be something like 192.168.202.1:27000

Enjoy.

P.S. Instruction can be partially applied for other dedicated servers, like CS:GO.
__________________
Expert of CMD/VBS/VB6. Malware analyst.
[My plugins] [My tools] [GitHub]

Last edited by Dragokas; 07-15-2019 at 15:49.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 07-15-2019 , 15:53   Re: [L4D2] How to run and join local dedicated server (Windows)
Reply With Quote #2

Please, correct me, if something could be accomplished in more easy way.

This is my first experience in creating a local server.
__________________
Expert of CMD/VBS/VB6. Malware analyst.
[My plugins] [My tools] [GitHub]
Dragokas is offline
Ilusion9
Senior Member
Join Date: Jun 2018
Location: Romania
Old 07-20-2019 , 14:32   Re: [L4D2] How to run and join local dedicated server (Windows)
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
Please, correct me, if something could be accomplished in more easy way.

This is my first experience in creating a local server.
You install the game (ex csgo), you put sourcemod in game files, you run your client with -insecure and you join a map (map <map>).
__________________

Last edited by Ilusion9; 07-20-2019 at 14:33.
Ilusion9 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 07-20-2019 , 14:45   Re: [L4D2] How to run and join local dedicated server (Windows)
Reply With Quote #4

Yea, good option. No server at all.
__________________
Expert of CMD/VBS/VB6. Malware analyst.
[My plugins] [My tools] [GitHub]
Dragokas is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-30-2019 , 09:35   Re: [L4D2] How to run and join local dedicated server (Windows)
Reply With Quote #5

Those servers created right in the client are called "listen servers" and aren't supported by sourcemod, so crashes might happen. A local dedicated server is the best option for plugin development.
__________________
Peace-Maker is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:32.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode