dt.iki.fi

Get Your IP with this PHP snippet

This site provides a link to get your external IP.

It contains only this:

<?php
echo $_SERVER['REMOTE_ADDR'];

For example, it could be used in a shell script like this:

my_ip="$(curl https://dt.iki.fi/ip.php)"