Saturday, January 9, 2010: A Quick Way of Getting Your Public IP Address « from the old blog archive »

My ADSL USB MODEM that is connected directly to my server is broken. Now I need to use a router instead.

However, I can't get noip2 to find my public IP Address, but there is noip2 -i (your ip address).

So here is my solution:

Whenever you want to use your public IP address, just type:

`curl http://ip.appspot.com/`

And that's it, so my noip2 command would be like:

sudo noip2 -i `curl http://ip.appspot.com/`