public class PortBinder extends Object
| Constructor and Description |
|---|
PortBinder() |
| Modifier and Type | Method and Description |
|---|---|
int |
findAvailablePort(int port,
int autoBindRange)
Searches for and returns a bindable port number.
|
public int findAvailablePort(int port,
int autoBindRange)
throws BindException
port - The port to start searching from.autoBindRange - The maximum range of ports to check for availability.BindExceptionCopyright © 2017. All rights reserved.