Allow host and port to be set with environment variables.