From 167b8c6bf998184c3bcfafbd685009cd8d3adb18 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 20 Apr 2024 00:37:58 -0700 Subject: [PATCH] make server visible on network --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index 312f966..904b677 100644 --- a/src/server.rs +++ b/src/server.rs @@ -56,7 +56,7 @@ impl Server { /// creates a new server with the given level pub async fn new_with_level(config: ServerConfig, level: Level) -> std::io::Result { - let listener = TcpListener::bind("127.0.0.1:25565").await?; + let listener = TcpListener::bind("0.0.0.0:25565").await?; Ok(Self { data: Arc::new(RwLock::new(ServerData {