Get your external IP address

curl ifconfig.me
curl ifconfig.me/ip -> IP Adress curl ifconfig.me/host -> Remote Host curl ifconfig.me/ua ->User Agent curl ifconfig.me/port -> Port thonks to http://ifconfig.me/

269
By: aajjk
2010-04-21 13:10:33

32 Alternatives + Submit Alt

What Others Think

Not nitpicking but, proxies are used a lot these Days..
zlemini · 581 weeks and 1 day ago
Just using curl on the URL returns the whole HTML of the page. The site actually recommends using this: curl ifconfig.me/all.json
morganestes · 385 weeks ago
curl ip-addr.es will execute faster.
testing_cli · 358 weeks and 1 day ago
I rather use ifcfg.me
Eun · 341 weeks and 6 days ago
curl curlmyip.net Or if http is blocked dig +short myip.opendns.com @resolver1.opendns.com
sneeze · 134 weeks and 4 days ago
What is ifcfg.me and where is it on the system?
cmbowyer13 · 101 weeks ago
thx for this manual, we used it to develop various when testing mobile applications for Bet365, 1xBetify, 1xBet.
1xbetify · 54 weeks and 2 days ago
I think you are right to say so. Your share is great, I found a lot of things in your post https://trexgame.co/
Lisa1812 · 41 weeks and 2 days ago
Yes this command is so useful thanks for sharing visit us ">VFM SEO USA
monicaphillpaa · 29 weeks and 2 days ago
learned alot here thanks for posting this breastaugmentationfresnoca.com !
looneyhans · 28 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: