public class FreePortFinder extends Object
| Constructor and Description | 
|---|
FreePortFinder()  | 
| Modifier and Type | Method and Description | 
|---|---|
static int | 
findFreePortOnIface(InetAddress address)  | 
static int | 
findFreePortOnIface(InetAddress address,
                   int prefered)  | 
static int | 
findFreePortOnLoopback()  | 
static int | 
findFreePortOnLoopback(int prefered)  | 
public static int findFreePortOnLoopback()
                                  throws IOException
IOExceptionpublic static int findFreePortOnLoopback(int prefered)
                                  throws IOException
IOExceptionpublic static int findFreePortOnIface(InetAddress address) throws IOException
IOExceptionpublic static int findFreePortOnIface(InetAddress address, int prefered) throws IOException
IOException