Skip to content
/SLASHPLAY

How to change the port of a CS 1.6 server

Add +port 27016 to the server's launch line and restart. Players then connect to the server's IP on port 27016; the default is 27015.

port

UDP port the server listens on. Players connect to the server's IP and this port.

port <port>

Examples

port 27015

The default, typed on the launch line as +port 27015.

port 27016

A second server on the same machine.

Arguments

portRequired
UDP port number.

What it does

Sets the main UDP port of the server, 27015 by default. Set it on the launch line with +port, because the network socket is opened once at startup and changing it later does nothing. Each server on the same IP needs its own 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.