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?
Ikky786Asked:
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.

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

wget http://ipecho.net/plain -O - -q

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

wget http://checkip.dyndns.org -O - -q
0

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 http://whatismyipaddress.com/ on the internet.  Otherwise, you may only see an internal LAN IP address and not your public IP address.
0
Ikky786Author Commented:
ok that's good what do the flags mean?
0
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 grc.com.  Scroll down to ShieldsUp and this test will show you the IP and DNS name.
0
woolmilkporcCommented:
-q suppress wget's status output

-O -  don't create files, write to standard output ( - ) instead
0
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 http://ipecho.net/plain
0
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
Linux

From novice to tech pro — start learning today.