def METHOD_NAME(self) -> HTTPServer:
    self._port = self._tcp_port_selector.get_free_tcp_port(
        # Allow 443, 80 in the future?
        preferred_ports=list(map(NetworkPort, [8080, 8008, 8000, 8443]))
    )
    if self._port is None:
        raise RuntimeError("Could not find a free TCP port to serve Agent binaries")
    return HTTPServer(("0.0.0.0", int(self._port)), self._handler_class)