public final class SocketUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
findFreePort()
Returns a free port number on localhost, or -1 if unable to find a free port.
|
static java.lang.String |
findFreePortString()
Returns a free port number encoded as a string
|
public static int findFreePort()
public static java.lang.String findFreePortString()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.