Updated getMyIp() for linux and windows