How to change the server port in Half-Life 2: Deathmatch
On SLASHPLAY you don't: the platform sets the port and your address already includes it. Type hostport in the Console tab to print it.
hostport
The port the game server listens on. 27015 by default.
hostport Examples
hostport Prints the port.
What it does
It is set when the server starts and can't be moved on a running server.
Good to know
- SLASHPLAY sets the ports. Changing them here stops players from connecting.
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.