Hit any URL on this service and it'll return your current IP address in plain text.
$ curl https://ip-address.now.sh/
1.2.3.4
Also, you can view the source code in GitHub, or on now.sh itself:
By Andrew Chilton, @andychilton.
For AppsAttic, @AppsAttic.
WTFPL.
(Ends)