public final class SocketUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getNextFreePort(int portRangeStart,
int portRangeEnd)
Method that is used to find the next available port.
|
public static int getNextFreePort(int portRangeStart,
int portRangeEnd)
throws java.io.IOException
portRangeStart - The first port that is triedportRangeEnd - The last port that is triedjava.io.IOException - If no available port is found.