add error handler for get_ip
Merge branch 'master' of https://github.com/guanlan/py-tcpstack