The online racing simulator
InSim Server Connection
(7 posts, started )
InSim Server Connection
I am attempting my first insim application. I am using the .net lib (http://www.lfsforum.net/showthread.php?t=39581). The intention is to run the application and connect to a local server. However the box I am running this on has multiple LFS servers running. I only want to connect to a specific one. I am assuming that if all the servers running on my box use different insim ports I would be fine. But I am not one to assume. So my question is how do I ensure that I am only connecting to the targeted LFS server?
When opening ports in LFS, it tells you if that port is already in use, even by another application. So you can't open the same port twice. It gives TCP bind error. I could be wrong though

You wouldn't be able to connect to the the wrong server anyway, unless they're all using the same admin password. Which is a bad idea
Change the port in ur insim to the new LFS u r running
so it is different to your other ones,

Mick
Yes, I was thinking that all I needed was to be using different insim ports on each server. I am doing that. But now I am confused. I was looking at the members of the configuration class. Should I be setting the LFSHostPort to the port the server runs on (62543) and the ReplyPort to the insim port (29997) used? Or do I just ignore the ReplyPort and just set the LFSHostPort to the insim port I want?
no real need for a reply port. LFSLib will fill it in for you if not configured. it's there in case you cant use a next number higher or so.
I would recommend LFS External for beginners since IMO it is much easier.
Thanks for all the help so far.

I don't think my app is too big. I am just tracking connections, players, flags, and races. However, when I run it on the server via mono, mono takes up 25% of the cpu and the server goes a bit laggy. Any ideas why this might be? Other apps that we have run on the server do not use that amount of CPU power.

InSim Server Connection
(7 posts, started )
FGED GREDG RDFGDR GSFDG