This is an interesting problem.
An open port is easy cos you'll get an answer.
A closed port is a different issue completely.
Here you wait for a timeout so I guess it's down to how long you want to wait. If you timeout too quickly you'll miss open ports on busy or slow servers. If you wait a long time you'll be slow.
The choice is yours I guess!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.