diff --git a/client/CServerHandler.cpp b/client/CServerHandler.cpp index 5584ad561..e6c6c3687 100644 --- a/client/CServerHandler.cpp +++ b/client/CServerHandler.cpp @@ -193,7 +193,7 @@ void CServerHandler::startLocalServerAndConnect() } #elif defined(SINGLE_PROCESS_APP) boost::condition_variable cond; - std::vector args{"--uuid=" + uuid}; + std::vector args{"--uuid=" + uuid, "--port=" + boost::lexical_cast(getHostPort())}; if(settings["session"]["lobby"].Bool() && settings["session"]["host"].Bool()) { args.push_back("--lobby=" + settings["session"]["address"].String());