diff --git a/soulseek-rs-lib/examples/stress.rs b/soulseek-rs-lib/examples/stress.rs index b73aaf2..a14f750 100644 --- a/soulseek-rs-lib/examples/stress.rs +++ b/soulseek-rs-lib/examples/stress.rs @@ -316,7 +316,9 @@ impl Seeder { Metrics::bump(&self.metrics.mocks_offline); return; }; - let Ok(listener) = TcpListener::bind(("127.0.0.1", port)) else { + // All interfaces: soulfind reports the host's LAN address for a + // loopback login, and the client dials that. + let Ok(listener) = TcpListener::bind(("0.0.0.0", port)) else { Metrics::bump(&self.metrics.mocks_offline); return; }; @@ -630,7 +632,9 @@ impl Leecher { Metrics::bump(&self.metrics.mocks_offline); return; }; - let Ok(listener) = TcpListener::bind(("127.0.0.1", port)) else { + // All interfaces: soulfind reports the host's LAN address for a + // loopback login, and the client dials that. + let Ok(listener) = TcpListener::bind(("0.0.0.0", port)) else { Metrics::bump(&self.metrics.mocks_offline); return; };