clientport Command

Explore usage, syntax, and examples for the clientport CS2 developer console command.

clientport

CS2 and CSGO

Command

clientport

<Port ID>

Use this command to connect directly to a server by specifying its port. It’s helpful in LAN setups where multiple PCs share the same IP address.

<Port ID>

Enter the server port number you want to connect to.

sv_cheats Required

No

Client or Server Command

Client

Server

Default Value

0

clientport Generator

Command

clientport

<Port ID>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

clientport Examples

Command

clientport

27005

Help connect directly to a server using its port.