get local IP by sending a udp to a host in internet
dalewang's repo