Written by James McDonald

May 13, 2012

There are many services that do this but looking in the Debian distributions package change logs I noticed that they are using http://checkip.dyndns.org/ to return your globally recognized IP address.

And it returns a very nice sparse reply as follows.

<html>
<head>
<title>Current IP Check</title>
</head>
<body>Current IP Address: 101.170.170.141</body>
</html>

So using a simple script you can parse the html and get the IP out for your own needs.

It seems many of the other websites that return your IP address have about 500KB of adds on the page. So this is definitely a winner.

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...