1
UDP is connectionless, so I can't expect a response packet, necessarily. If the port is closed, I might get an ICMP error message, but if the firewall could silently drop the ICMP packet How could I know if the UDP port is opened or closed is there another way to scan UDP port.
seems good, but how can I use it in my java code, and retrieve list of open ports ? – dana.ba – 2014-08-23T19:09:15.760
You were not talking about any Java code in your initial question ! However Java is able to run external programs http://www.rgagnon.com/javadetails/java-0014.html Search for "java run external program" within Google, and post on stackoverflow if you have programming problems
– user2196728 – 2014-08-23T19:13:26.017