Get the IP address without shelling out

While slightly hacky, it's possible to get the IP address by connecting to another IP, and checking what IP we used to connect to it with.

It could be possible to add back in the previous method of getting the IP as a fallback in case this way doesn't work.