pub fn input_external_endpoint( external_ip: Option<IpAddr>, listen_port: u16, ) -> Result<Endpoint, Error>