myip.bitvalve.org

Your current IP is 216.73.216.52

Direct output to your shell:

#!/bin/bash

wget "https://myip.bitvalve.org" -q -O /tmp/myip.htm;
head -n 14 /tmp/myip.htm | grep "Your current IP is" | cut -d " " -f 5 | tr -d "<bp>/";
rm -f /tmp/myip.htm;