public class Ports extends Object
| Constructor and Description |
|---|
Ports() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
findFree()
Tries to find a free port in the range defined by the IANA for
ephemeral ports.
|
static Integer |
findFree(int lowIncluse,
int highInclusive)
Returns a free port in the defined range, returns null if none is available.
|
static boolean |
isFree(int port) |
public static Integer findFree()
public static Integer findFree(int lowIncluse, int highInclusive)
public static boolean isFree(int port)
Copyright © 2017. All rights reserved.