EASIEST BEST WAY
#################

This has the positive of just giving you the IP on 1 line, no other garbage and it has worked for year (2 for me and counting, im sure its more, I just haven’t started counting then)

Just remember icanhazip. “I can has IP” with a Z.

or

The snip is there because you get extra output:

There will be extra output of the progress bar with wget, to make it go away

 

or simpler

 

The progress bar goes to STDerr which is 2> which we dont use, we use > so it doesnt save to myip

Another way

But that still also has some output, so again can negate the STDerr output like this

 

With mypublicip.com
#####################

mypublicip has extra output on its html website unlike Icanhazip

Note you will have alot of extra text, your ip will be there
You can use it with my IP GREP tool to just single out the ip. (Here is the grep line: http://www.infotinks.com/grepfind-ips-in-a-file/)

or

or

or

or

or

or

or

 

MANY OTHER WAYS EXIST!

Leave a Reply

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