0
I have a python socket server (single-threaded, accepts only one connection) running somewhere.
I connect to that port and do my things.
How can I detect whether port is open or closed without making any connection? I mean, I don't want to close the port to see if it is open or not :-)
I already tried nc -zvv ip port
but this closes the script (because it actually connects to the port).
Modify the script so that it doesn't exit when the connection is closed. – gronostaj – 2014-06-25T11:26:30.280
So no other way? Does this behavior also happen when using a port scanner like
nmap
? – vfsoraki – 2014-06-25T11:48:35.477