How to detect Public IP on VPS

If you have to find the public IP addresses that are assigned to a Virtual Private Server, just use the command below

[code]
ifconfig
[/code]

On VPS, you would get the following

lo ===> 127.0.01
venet0 ==> 127.0.01
venet0:0 ==> Public IP
venet0:1 ==> Public IP

If you have more than one public IP, you would see venet0:1, venet0:2, venet0:3 etc

Leave a Reply

Your email address will not be published.