1 Answer
Try running these commands to know the Public Ip address of your machine through Command Line Interface
Using CUrl Command
> curl ifconfig.me
> curl ifconfig.co
> curl ifconfig.icanhazip.com
Dig utility:
dig +short myip.opendns.com @resolver1.opendns.com
Wget Command
> wget -qO- http://ipecho.net/plain | xargs echo
> wget -qO - icanhazip.com
Host Utility
> host myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}'
Your Answer