Skip to content

What is my IP address?

For a number of reasons it is nice to know your own IP-address. If you are behind a firewall or a NAT system, you usually only have a private IP-address and "someone else" on the internet needs to tell you your official IP-address.

Given what usually happens with free services - they are closed once in a while - and with freemium services - they change the business modell - I decided to run my own service. After all, it's not that complicated, and it integrates well into my own Dynamic DNS service.

What do you need to run such a service?

  • A webserver with the ability to run scripts
  • A small script
  • Optional: a domain or subdomain

Since I already use "updates.domain" for my own Dynamic DNS service, I decided to use this subdomain for the "what is my IP address" service as well. As scripting language I use PHP here.

Decide yourself if you want to integrate this into the "index.php" or use another name. The script itself is ridiculous easy:




Whenever you enter the URL into a browser, it returns your current official IP-address - and nothing else. No advertising, no Captcha, just the address. Usage in a script is very easy as well:

lynx -source -dump http://updates.domain/my_ip.php



No Trackbacks


Display comments as Linear | Threaded

LeSpocky on :

Falls man lynx nicht installiert hat, tut auch: curl ;-)
Comments ()

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.
Form options