oliver
asked May 15 2017
Answer
There are many commands to view the Public IP from command-line. Using dig command or curl command etc.
Dig command:
# dig +short myip.opendns.com @resolver1.opendns.com
Curl command:
# curl ifconfig.me
jagannatharumugam
asked May 15 2017
edited Oct 05 2018
How to view the outside IP from command-line in linux
Is it possible to view the Public IP address for my server in linux??