two methods: getIPAddress() and getPort()