Little adjust to method used to get IP address from ip.appspot.com