Java - Port

About

Management

Get a random port

ServerSocket socket = new ServerSocket(0);
port = socket.getLocalPort();
socket.close();

Powered by ComboStrap