The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Dreedo on April 26, 2011, 02:05:59 PM

Title: Creating an LAN server?
Post by: Dreedo on April 26, 2011, 02:05:59 PM
Hi,

I was just wondering whether it was possible to create an LAN server. Is there some kind of server program that you need to use to host a server? I edited my Simuconf.tab file to the same as it says in the 'how to setup a server' topic. But can't connect to it.

I presume you can only see your server if its registered on the server list? :/

Thanks.
Title: Re: Creating an LAN server?
Post by: prissi on April 26, 2011, 02:47:07 PM
THe server is only visible, if it is registered on the server list. But you can connect to it without the list, just enter the address. Please only enter server to the list which are actually working.
Title: Re: Creating an LAN server?
Post by: Dreedo on April 26, 2011, 02:50:01 PM
Well i kept the IP as 127.0.0.1 in the config, booted up simutrans (latest version) and clicked playonline, clicked the add server button, but when i entered 127.0.0.1, it said: Server did not respond.

I uncommented the multiplayer options in the simuconf file by removing the # at the start of the necessary lines, i presume I'm meant to do that.

Thanks for replying so quickly.
Title: Re: Creating an LAN server?
Post by: VS on April 26, 2011, 03:10:06 PM
You will run Simutrans twice - once as the server*, once as "some" client. The instance started with -server option will be the server, and the other will connect to it. Connecting is where you will "add server".

The address 127.0.0.1 is special (everywhere) and means "same computer". So, you can use that only if you run Simu twice on one machine. Otherwise, you will have to find out your IP addresses yourself...

*Advisable: duplicate the whole Simutrans folder, choose one for server and edit server's simuconf.tab to have singleuser_install=1. This will prevent clashes of two Simutranses running on one computer, when you try stuff.

It's not clear exactly what all you did, so sorry if I repeat the obvious trivia...
Title: Re: Creating an LAN server?
Post by: Dreedo on April 26, 2011, 04:29:32 PM
Wow, thanks a lot, i have it working now. :)
Title: Re: Creating an LAN server?
Post by: faruq on May 20, 2012, 02:23:22 AM
Yeahhh..
thanks guys!!!!
its work!!!!
Title: Re: Creating an LAN server?
Post by: Spacethingy on November 28, 2012, 12:48:33 PM
Apologies for the necro, but any chance the 127.0.0.1 address thing could be added to Timothy's very useful stickied post below?
http://forum.simutrans.com/index.php?topic=8230.0

I spent quite a bit of time searching out port numbers and horribly complicated stuff before stumbling on this thread... :)
Title: Re: Creating an LAN server?
Post by: Fabio on November 28, 2012, 01:20:25 PM
Quote from: Spacethingy on November 28, 2012, 12:48:33 PM
any chance the 127.0.0.1 address thing could be added to Timothy's very useful stickied post below?
http://forum.simutrans.com/index.php?topic=8230.0

I just quoted Prissi's and VS's tips there.
Title: Re: Creating an LAN server?
Post by: Spacethingy on November 28, 2012, 01:35:47 PM
Lovely, thanks!
Title: Re: Creating an LAN server?
Post by: An_dz on November 28, 2012, 02:56:08 PM
I sometimes think why we have a wiki:
http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=en_network_mode
Title: Re: Creating an LAN server?
Post by: Fabio on November 28, 2012, 06:58:42 PM
Forum and wiki seem to be in competition, but most players apparently like forum better...