#! /usr/bin/env python

import socket

def get_remote_machine_info():
	remote_host = 'www.163.com'
	try:
		print ("IP address: %s" %socket.gethostbyname(remote_host))
	except socket.error:#except socket.error, err_msg
		print ("%s : %s" %(remote_host, err_msg))
		
if __name__ == '__main__':
	get_remote_machine_info()