What is a Port in computing? in Java
ServerSocket socket = new ServerSocket(0); port = socket.getLocalPort(); socket.close();