Avatar of Ikky786
Ikky786 asked on

Is there a command in Linux which displays the public ip address just like i.e.http://whatismyipaddress.com/

Command to display public ip address in Linux please?
LinuxLinux NetworkingNetworking

Avatar of undefined
Last Comment
My name is Mud

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Dave Baldwin

If you have a browser on Linux, you can just go to http://whatismyipaddress.com/ on the internet.  Otherwise, you may only see an internal LAN IP address and not your public IP address.

ok that's good what do the flags mean?
Mohammed Khawaja

Another site to get your external IP is grc.com.  Scroll down to ShieldsUp and this test will show you the IP and DNS name.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

-q suppress wget's status output

-O -  don't create files, write to standard output ( - ) instead
Sumesh BNR

My name is Mud

You need to install lynx... sudo yum install lynx (or apt-get, or whatever your distribution is)... then run it like...

lynx --dump http://ipecho.net/plain
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.