How to set up dedicated server?
Moderator: Oberlus
How to set up dedicated server?
I have the latest version from the PPA for ubuntu, and I can start freeoriond but it just sits there with no output and if I put the host name in the client and try and connect the screen goes black and then just sits there. Is there a freeoriond config file to set desired settings?
Thx!
Marisa
Thx!
Marisa
--- https://SynchronetBBS.org/OurServers - All the servers we support or host
Re: How to set up dedicated server?
First thing for dedicated server is you need to provide --hostless argument to freeoriond executable.MarisaG wrote: ↑Wed Jul 10, 2019 4:15 am I have the latest version from the PPA for ubuntu, and I can start freeoriond but it just sits there with no output and if I put the host name in the client and try and connect the screen goes black and then just sits there. Is there a freeoriond config file to set desired settings?
Thx!
Marisa
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: How to set up dedicated server?
Done.. What next?
--- https://SynchronetBBS.org/OurServers - All the servers we support or host
Re: How to set up dedicated server?
Check it again. Do you get to multiplayer lobby? Next depends on what you want to play on the server.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: How to set up dedicated server?
I am also experimenting with the multiplayer server. I ran 'freeoriond --hostless' and could connect to it with multiple client windows and start a game. But if one of the clients leaves it kicks the others out of the game too.
Re: How to set up dedicated server?
I just tried to start a server process and haven't gotten it working, but while looking through the options i found one which looks possibly pertinent to your situation:
Code: Select all
freeoriond.exe --help network.server.unconn-human-empire-players
Options:
--network.server.unconn-human-empire-players.max
Maximum number of players, who control non-eliminated empires, who may be
unconnected from the server before it stops the game being played.
Disabled if 0, meaning the server will never stop the game due to
empire-playing players being unconnected.
Default: 1
EDIT: Confirmed, this addresses your issue. I ran a server with 'freeoriond --hostless' and found the same behavior that you described: Exiting ("resigning") the game with one client caused the other client to exit to the multiplayer lobby.
Then i ran a server with 'freeoriond --hostless --network.server.unconn-human-empire-players.max 0' and when i exited the game with one client, the other stayed in the game. /EDIT
Re: How to set up dedicated server?
Yes, also there is a option network.server.conn-human-empire-players.min which declares lower bound of connected players. Setting it to 0 allows server to not stop the game if no one is connected.
You could also use https://github.com/o01eg/freeorion/blob ... config.xml and https://github.com/o01eg/freeorion/blob ... freeoriond as an example with used options.
You could also use https://github.com/o01eg/freeorion/blob ... config.xml and https://github.com/o01eg/freeorion/blob ... freeoriond as an example with used options.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: How to set up dedicated server?
Thanks! I was able to get it working.
Re: How to set up dedicated server?
To have a server accessible only on a LAN, is there something specific to do ?
Re: How to set up dedicated server?
depends on your set-up (the ports must be reachable/allowed to talk), but else no.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!
Re: How to set up dedicated server?
OK, thanks.
Which ports need to be allowed ?
Is there some documentation somewhere ?
Which ports need to be allowed ?
Is there some documentation somewhere ?
Re: How to set up dedicated server?
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm