Public IP from a command line

Written by Adrien le Maire - 16 march 2011

There's a little tirck to get your ip by another way than "grep / sed" from a web page. ifconfig.me allows you to get your ip with one simple command :
curl ifconfig.me
or
curl ifconfig.me/ip
for the reverse dns of your ip :
curl ifconfig.me/host
more informations on the official website : http://ifconfig.me

Classified in : Linux - Tags : IP, curl

Write a comment

Capcha
Enter image code : 

Categories

Archives

Tags

Last articles

Last comments