Added more accurate detection of ip address.
Merge pull request #4 from caxap/master

Added more accurate detection of ip address.