How to make a Half-Life 2: Deathmatch server LAN only
Set sv_lan 1 in hl2mp/cfg/server.cfg. On SLASHPLAY keep sv_lan 0, or players outside the server's network can't join.
sv_lan
Makes it a LAN-only server: no Steam authentication and only local-network players can join. 0 by default.
sv_lan <0|1> Examples
sv_lan 0 Internet server, the default.
Values
| Value | What it does |
|---|---|
| 0Default | Off |
| 1 | On |
Arguments
0|1Required1turns it on,0turns it off.
What it does
Keep it at 0 for a server people join over the internet. With 1, the server skips Steam checks and accepts only local addresses.
Good to know
- Leave it at 0 on SLASHPLAY: with 1, your friends can no longer join over the internet.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.
Your own
HL2DM server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.