Is there a command in Linux which displays the public ip address just like i.e.

Command to display public ip address in Linux please?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

There is a website called "" which you can reach via wget, like this:

wget -O - -q

There is aslo a website "" which will echo back your IP in HTTP format:

wget -O - -q

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
If you have a browser on Linux, you can just go to on the internet.  Otherwise, you may only see an internal LAN IP address and not your public IP address.
Ikky786Author Commented:
ok that's good what do the flags mean?
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Another site to get your external IP is  Scroll down to ShieldsUp and this test will show you the IP and DNS name.
-q suppress wget's status output

-O -  don't create files, write to standard output ( - ) instead
My name is MudSystems EngineerCommented:
You need to install lynx... sudo yum install lynx (or apt-get, or whatever your distribution is)... then run it like...

lynx --dump
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.