Change method getIPAddress() to return a InetAddress