The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: budy on June 19, 2024, 05:55:59 PM

Title: Lan server linux
Post by: budy on June 19, 2024, 05:55:59 PM
I would like to play simutrans with my siblings on a LAN and I can not for the life of me figure out or find a tutorial on how to do LAN play between us. I have the version from apt, flathub and steam. I would much prefer to use the flathub version as my brother wants to play the scifi pack and I cant figure out how to get it for any of the other versions
Title: Re: Lan server linux
Post by: Roboron on June 19, 2024, 07:57:09 PM
For LAN games, you only need to make sure your OS Firewall does not block port 13353 (default port for Simutrans).

Then other players can connect to your server by going to Main Menu => Play Online. Write the local IP:Port of the server and hit "Query Server", then "Play Online".
Title: Re: Lan server linux
Post by: budy on June 20, 2024, 01:09:16 AM
I opened port 13353 using "ss -na | grep :13353" then "sudo ufw allow 13353". I have validated that the port is open and the IP are correct but whenever we push query server it always says "Server did not respond!" both on my machine. I know my IP and port are correct because I can echo from that port.
Title: Re: Lan server linux
Post by: prissi on June 20, 2024, 02:54:37 AM
What version do you use? If not compiled with UPNP support or your router doesn't support UPNP, the above method won't work.

But for local LAN, you need your local IP address, and start a game with loading a game while "start at server" Others can connect with load "net:192.168.0.11" (or whatever your IP address is.
Title: Re: Lan server linux
Post by: budy on June 20, 2024, 02:45:43 PM
I never (personally) compiled it. How do I start it as a server with either the flatpack version (124.1.1) apt version (120.4.1) or the steam version?
Title: Re: Lan server linux
Post by: jamespetts on June 20, 2024, 04:41:20 PM
Quote from: budy on June 20, 2024, 02:45:43 PMI never (personally) compiled it. How do I start it as a server with either the flatpack version (124.1.1) apt version (120.4.1) or the steam version?
Starting a saved game as a server normally just requires selecting the "start game as server" checkbox in the load game dialogue.

If what you are trying to do is play a Simutrans session with your siblings on a local LAN every now and then, what you would do is: (1) set up a saved game consisting of a blank map suitable to start: (2) on one of the computers, load that saved game with the "start game as server" checkbox checked; and (3) on the other computers, your siblings would then connect to this game by opening the network dialogue and typing the local IP address of the computer on which the server is running. When you have finished a session, save the game on the server and then re-load it in the same way when you want to continue.
Title: Re: Lan server linux
Post by: budy on June 20, 2024, 06:14:50 PM
Thanks it worked. That is like literally the only window I never opened trying to figure it out.