public class Ports
extends java.lang.Object
Constructor and Description |
---|
Ports() |
Modifier and Type | Method and Description |
---|---|
static boolean |
available(int port)
Checks to see if a specific port is available.
|
static int |
findAvailable(int min,
int max)
Scan a range of ports to find the first available one.
|
public static boolean available(int port)
port
- the port to check for availabilitypublic static int findAvailable(int min, int max)