diff --git a/server/src/lib.rs b/server/src/lib.rs index 51f31a15cf..7c01bac517 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -383,6 +383,7 @@ impl Server { .await }); runtime.block_on(network.listen(ProtocolAddr::Tcp(settings.gameserver_address)))?; + runtime.block_on(network.listen(ProtocolAddr::Mpsc(14004)))?; let connection_handler = ConnectionHandler::new(network, &runtime); // Initiate real-time world simulation diff --git a/voxygen/src/menu/main/mod.rs b/voxygen/src/menu/main/mod.rs index 80de3e768c..6f6b3c8f1c 100644 --- a/voxygen/src/menu/main/mod.rs +++ b/voxygen/src/menu/main/mod.rs @@ -69,16 +69,13 @@ impl PlayState for MainMenuState { if let Some(singleplayer) = &global_state.singleplayer { match singleplayer.receiver.try_recv() { Ok(Ok(runtime)) => { - let server_settings = singleplayer.settings(); // Attempt login after the server is finished initializing attempt_login( &mut global_state.settings, &mut global_state.info_message, "singleplayer".to_owned(), "".to_owned(), - ClientConnArgs::Resolved(ConnectionArgs::IpAndPort(vec![ - server_settings.gameserver_address, - ])), + ClientConnArgs::Resolved(ConnectionArgs::Mpsc(14004)), &mut self.client_init, Some(runtime), );