How to Get Public External IP From Command Line Terminal - Linux
Submitted by ingram on Sun, 01/08/2012 - 1:59pm

If you are trying to find out what your public external IP address is, you typically go to a web site specifically for this purpose, such as ipchicken.com or whatsmyip.org. Thanks to cURL, you can easily do this from the command line too. To install cURL, run the following command:
- Ubuntu: sudo apt-get install curl
- openSUSE: sudo zypper install curl
To find out what public IP you are using, run this command:
curl ifconfig.me
A single line will be returned containing your public external IP address.
Bookmark/Search this post with
- Add new comment
- 8 comments


Like this article?? Check out these:
User login
Popular content
Today's:
All time:
Last viewed:
Did you find this tutorial useful?
To assist with the bills and the author's time, please consider making a donation. Any amount helps:
Top Categories
Linux
ubuntu
Terminal
Windows 7
Command Line
Exchange 2010
Exchange
windows
hosted exchange
Open Source
Christain
Bible
hacking
Multi-Tenant
SSH
WINE
Internet Explorer
Server 2008 R2
Citrix
Citrix Receiver
Pure-FTPd
DNS
Lync
OpenPanel
HP
Server
server 2008
Active Directory
Exchange 2010 SP1
Games
Script
IE9
Switch
Unity
Control Panel
ASCII
iis
profile migration
ESX
Fail2ban
iptables
Outlook
VM
tweak
Unified Messaging
domain
ADSIedit
ATI2DVAG
XenServer
file system
BSOD
dos
ext4
e2fs
Activation
hfs
jfs
xfs
reiser
ntfs




You can get the same results
You can get the same results using wget:
wget -qO- ifconfig.me/ip
the site ifconfig.me is down.
the site ifconfig.me is down.
"curl whatismyip.org" will
"curl whatismyip.org" will also work (and seems to have a faster response at least from my location)
Here's one that works a bit
Here's one that works a bit faster: wget -qO- ipecho.net/plain
Thanks a lot!
Thanks a lot!
If you install cURL or wget
If you install cURL or wget on Windows, you can use these same commands to find your external IP in Windows also.
You Rock!
You Rock!
Thanks for sharing the
Thanks for sharing the information ingram.I use Ip-details.com for IP and Host Search.
Post new comment