public Connector create(int port) {
		try (ServerSocket serverSocket = new ServerSocket(port)) {
			Socket socket = serverSocket.accept();
			return new Connector(socket, m_connectionType);
		} catch (IOException e) {
			throw new RuntimeException("Fail to create connector", e);
		}
	}
Factory method.

@param host host
@param port port
@return A connector which can be used to contact the console.
ngrinder-core/src/main/java/net/grinder/engine/common/AgentControllerConnectorFactory.java