Author Topic: Getting standalone and client to work on one PC [Solved]  (Read 884 times)

0 Members and 1 Guest are viewing this topic.

Offline ksotar

  • 26
Getting standalone and client to work on one PC [Solved]
Now it is my time to ask questions :)
Is there a way to do it? I want to be able to have standalone, but also to connect to it from the same PC if there will be need.

I now that I can make them to use different ports, so they will start normally (without socket/protocol is in use error). But then they will not see each other, logically enough.

I can change something in the source code, if someone has the idea what it could be.
« Last Edit: October 18, 2018, 04:21:57 am by ksotar »

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: Getting standalone and client to work on one PC
If you only tell the client to use a different port, it should work... If it doesn't, what kind of error do you get?

 

Offline ksotar

  • 26
Re: Getting standalone and client to work on one PC
It works but then client doesn't see that server, that seems logical enough.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: Getting standalone and client to work on one PC
Oh, right. You're not using a tracker (PXO/FS2NetD) but local discovery. I guess that won't work with different ports.

Hm... I guess you could pass the server port to the client? IIRC there was a flag or multi option for that. Not sure though.

Anyway, local discovery doesn't work with different ports and there's pretty much no way to fix that due to how it works.

 

Offline ksotar

  • 26
Re: Getting standalone and client to work on one PC
>pass the server port to the client

can you elaborate a bit more on that?

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: Getting standalone and client to work on one PC
You should be able to use the -connect flag for that. Like this: -connect 127.0.0.1:95541

 

Offline ksotar

  • 26
Re: Getting standalone and client to work on one PC
That looks feasible, I'll try, thanks!

 

Offline ksotar

  • 26
Re: Getting standalone and client to work on one PC
Well, IDK what I've changed, but I ran client with
Code: [Select]
-port 7809 and client just saw the server. Maybe last time I tried the other way around and with no luck. So the problem is solved, but the key provided by you is nice to know as well.

  

Offline ksotar

  • 26
Re: Getting standalone and client to work on one PC [Solved]
And
Code: [Select]
-connect led to this. Maybe I'll have time someday to fix this.