pbrook/pycubedemo — pull request #11 by ultrafez (2014-07-25 17:08:36+00:00)
Title: 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.