A Quick Way of Getting Your Public IP Address

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/`
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>