Creating A HL2 Deathmatch steam server

Associate
Joined
5 Apr 2008
Posts
1,526
Hi,
I want to create a server that I can play my friend on. But there is a problem. I have port forwarded all required ports (according to portforward.com) and my server only appears on the lan tab. What do i need to do.
Tim:confused:
 
From many years ago when I last tried this , I seem to recall having to add a command like "+ip xxx.xxx.xxx.xxx" to the command line I was using to start the server/game - where the xxx.xxx... is your external ip - for it to be visible outside my lan.
 
Your friend won't be able to join via steam friends. You need to give him the ip and port then connect ip:port
 
Last edited:
If your using a dedicated server, you have selected internet not LAN for the server type?

If your not using dedicated server, they download and use it! It runs much better than a listen server when on a single machine
 
From many years ago when I last tried this , I seem to recall having to add a command like "+ip xxx.xxx.xxx.xxx" to the command line I was using to start the server/game - where the xxx.xxx... is your external ip - for it to be visible outside my lan.


Can you please explain this, because if i want to start a server I just click create server, there are no internet options.
 
You can play when running a dedicated server but performance might not be too good. Try it and see what happens.

Main things to consider:

1. That you give your external IP to your friends + port e.g. 193.45.2.35:27017 (random ip).

2. Your router is port forwarded and sv_lan 0 or Internet selected on srcds/dedicated server.
 
But if i use dedicated server then i cant play on it can i.

Yes you can - you just connect to it as if you were connecting to anybody else's server out there .

This is probably the best idea - to run the dedicated server and connect as a client - your machine should have no trouble running it in the back ground and running the game client at the same time.

And sorry can't recall exactly where I had to put the "ip" command , I may even have had a small utility prog that would build the command line options and launch the program for me as this could be back before the days of STEAM. :o

EDIT - You might find this helpfull if you haven't already seen it http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3
 
Last edited:
How do I create a Half Life 2 Deathmatch dedicated server

Please can someone give me a step by step guide to making a simple hl2dm dedicated server for 3 people, with a password.

I have no idea.
 
Steam > tools > source dedicated server

Has a gui so should be easy enough to work out. But the cmd version uses less resources than the gui.
 
open steam
go to the tools tab
open "source dedicated server"
select HL2 DM as the game type
give it a name
set network to internet
set max players
leave the port alone
set an rcon password (this is so you can administer the server through the console)
click start

go to steam
go to servers
go to the lan tab
your game will appear here
you can connect

tell your friends your ip address (whatismyip.com)
get them to go to their server tab
go to favorates
right click empty space and select "add server by ip"
enter your ip
search for servers
yours will appear
they can connect

As for setting a server password, someone will ahve to answer that

Running a dedicated server and then a normal game on the same machine is a lot less intensive than a listen server. it runs much better and if you add bots a listen server will fall over after about 5 or 6, a dedicated will run happyly with 30
 
add them to the hl2dm/maps directory in C:/Program Files/Steam/Steamapps/yourusername/source dedicated server/hl2dm/maps

Then add the name of the map without .bsp to hl2dm/maplist.txt and mapcycle.txt
 
Back
Top Bottom