import socket
try:
	s=socket.socket()
	host="www.google.com"
	port=8888#443#80
	s.connect((host,port))
	print "connected successfully!!!"
except Exception as err:
	print err
finally:
	s.close()
9aeabf6744ed3a9ac5a1df44c5287b764fe258ac
import socket
try:
	s=socket.socket()
	host="www.google.com"
	port=8888#443#80
	s.connect((host,port))
	print "connected successfully!!!"
except Exception as err:
	print err
finally:
	s.close()