allow to pass a host and a port to build the endpoint