Trying to connect with the getIpAddress() method