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

ip command Linux Add a comment
oliver
asked May 15 2017

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
Add a comment
jagannatharumugam
asked May 15 2017
edited Oct 05 2018
Post your Answer