public class PortTester
extends java.lang.Object
Constructor and Description |
---|
PortTester() |
Modifier and Type | Method and Description |
---|---|
static boolean |
portAvailable(int port)
Determines if the given port can be bound to on this machine.
|
public static boolean portAvailable(int port) throws java.io.IOException
port
- The port to test for availability.java.io.IOException