NB! It seems this console command is not compatible with CS2.
Command Profile
NET_PUBLIC_ADR
CS:GO
This command sets the public IP of the server (NAT/DHCP).
Syntax
net_public_adr [IP Address]
Description
This command sets the public IP of the server (NAT/DHCP).
How To Use net_public_adr
- Enable the developer console in Counter-Strike settings.
- Open the console with the tilde key (
~). - Enter
net_public_adr [IP Address], replacing bracketed arguments with the value you want, then press Enter.
This legacy command is not currently listed as compatible with Counter-Strike 2.
Syntax And Arguments
net_public_adr [IP Address]
| IP Address | The public IP address of the server. |