0

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??

oliver
asked May 14, 2017
1 Answer
0

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
View More
jagannatharumugam
answered May 15, 2017
Your Answer
||||
 
100:0