the IP address can be anything that is real (this is the I got for stackoverflow.com), but it should be an IP address reachable on the interface you want to get the IP address for. Since its a UDP socket, no connection is actually attempted, but it does try and figure out what interface to use.