Posted By:
Rami_Abramson
Posted On:
Wednesday, October 16, 2002 06:33 AM
Hello,
How is it possible to check if a port XXX is available or being used, without using the 'new ServerSocket(portno)' option ?
Using the above solution may allocate the port - something which is undesired:
try {
ServerSocket s = new ServerSocket(portno);
}
catch(IOException e) {
System.out.println("port " + portno + " already in use");
}
Whould appreciate a quick response.
thank you,
Rami