import
socket
sk
=
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.settimeout(
1
)
try
:
sk.connect((
'10.1.18.196'
,10088
))
print
'Server port 10088 OK!'
except
Exception:
print
'Server port 10088 not connect!'
sk.close()
import
socket
sk
=
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.settimeout(
1
)
try
:
sk.connect((
'10.1.18.196'
,10088
))
print
'Server port 10088 OK!'
except
Exception:
print
'Server port 10088 not connect!'
sk.close()