Make the endpoint and port configurable