Is it possible to check if a connection is listening on a certain port before you try to connect() to it?
Is it possible to check if a connection is listening on a certain port before you try to connect() to it?
Yes, when you are pinging yourself. Then you are not really connecting. But you can check the ports with a prog on your computer.
But, when you wanna check some other computers for open ports, then you have to ping them.
Are you going to write a portscanner??????