How to change the server port in CS2
Add -port 27016 to the launch line, which sets hostport, so the server listens on 27016 instead of 27015.
hostport
Sets the port the game server listens on.
hostport <port> Examples
hostport 27016 Run a second server on 27016.
Arguments
portRequired- UDP port number.
What it does
The standard port is 27015. Set it on the launch line with -port when running several servers on one machine.
The game's own description: Host game server port
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 game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.
Your own
CS2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.