Plain text external IP source

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Plain text external IP source

Post by ayu »

I found this pretty handy when I needed a script somewhere where I could grab my external IP.
Saves you some parsing when it's in plain text.

Code: Select all

http://v4.ipv6-test.com/api/myip.php
Of course such a script could be written by yourself as well.

Code: Select all

<?php echo $_SERVER['REMOTE_ADDR']; ?>
"The best place to hide a tree, is in a forest"

Post Reply