Use socket.gethostbyname(socket.gethostname()) to get local IP

`socket.gethostbyname(socket.gethostname())` can handle VPN or local proxy better.
This fixed #84 for me.