A
AmitMeMe
Hi:
Socket soc= new Scoket(address, portnumber);
look at the code above, it can only tell you active TCP ports for
the Throwable e tells you nothing about UDP ports. An active UDP
port doesn' respond to the connection call "soc". Therefore it will
throw an exception(connection refused) after trying to connect an
active UDP port.
This exception is just like those of closed TCP ports.
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.