private boolean checkPortNumber() {
		portNumber = -1;
		String portStr = portNumberField.getText();
		String msg = null;
		try {
			portNumber = Integer.parseInt(portStr);
			if (portNumber < 0 || portNumber > 65536) {
				portNumber = -1;
				msg = "Port number must in range of 0 to 65536";
			}
		}
		catch (NumberFormatException e) {
			msg = "Invalid port number entered";
		}
		setStatus(msg);
		return msg == null;
	}
Set the field values using the given server info.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ServerInfoComponent.java