Set the endpoint to the correct host