Extracted out get-my-ip module.