Close issue #106 by adding a check in the getIPAddress().
resolve #106