Hi,
I don't have server listening on port 8084 but I can open socket to it
(and to many other ports, tested for all<8000)
import socket
def test(port):
af, socktype, proto, canonname, sa =
socket.getaddri nfo('localhost' , port,
socket.AF_INET, socket.SOCK_STR EAM)[0]
s = socket.socket(a f, socktype, proto)
s.settimeout(1. 0)
s.connect(('loc alhost', port))
s.close()
# This doesn't throw socket.error, it happily finishes
for x in range(1, 8000):
test(x)
Thanks,
Tvrtko
I don't have server listening on port 8084 but I can open socket to it
(and to many other ports, tested for all<8000)
import socket
def test(port):
af, socktype, proto, canonname, sa =
socket.getaddri nfo('localhost' , port,
socket.AF_INET, socket.SOCK_STR EAM)[0]
s = socket.socket(a f, socktype, proto)
s.settimeout(1. 0)
s.connect(('loc alhost', port))
s.close()
# This doesn't throw socket.error, it happily finishes
for x in range(1, 8000):
test(x)
Thanks,
Tvrtko
Comment