Skip to content
/SLASHPLAY

How to set the host port of a CS 1.6 server

Add +hostport 27016 to the server's launch line and restart. It overrides port; changing it on a running server does nothing.

hostport

UDP port the server listens on. When 0, the server uses the value of port.

hostport <port>

Examples

hostport 27016

Typed on the launch line as +hostport 27016 to run a second server on the same IP.

Arguments

portRequired
UDP port number. 0 means use port.

What it does

If set above 0, this overrides port as the UDP port the server binds to. It must be set on the launch line, for example +hostport 27016, because the network socket is opened once at startup. Changing it in a running server does not move the server to a new port.

Good to know

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 cstrike/server.cfg. New to this? Start a CS 1.6 server first.

Your own
CS 1.6 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.