Get Your IP with this PHP snippet

This site provides a link to get your external IP.

It contains only this:

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

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

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