I'm writing a script that does dynamic DNS updates for me, but my server is behind a router, and so I need to determine my public IP.
There are websites like these ones that return some HTML, but I really don't want to bother parsing HTML when what the script needs to do is such a simple task.
How can I just get my IP address in plain text?