Read upid host and port from environment, or from local public ip