How to check the status of the UDP port status

T

tsgd84

I am writing a small application to check the status the given TCP and
UDP ports in a machine.

I have created a socket and connected to the machine using connect()
while specifying SOCK_STREAM [for TCP] in socket() the connect()
method fails as expected if the particular TCP port remain closed or
not permitted from TCP/IP filtering in Windows 2000 Professional.

But when SOCK_DGRAM [for UDP] in socket(), the connect() method
doesnot fail as expected if the particular UDP port remain closed or
not permitted from TCP/IP filtering in Windows 2000 Professional.

How do I check whether the particular UDP port is closed/opened/
restricted/permitted.

Thanks
Deenad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top