Added get method for ip address and port number