Trigger client.connect to other IP address?
Hi there,

we are thinking of creating 2 servers that are connected with each other: One would run Hapis, the other a tiny procgen map. On both, there would be a custom NPC each that you can interact with. Upon interacting, there would open a GUI with a button "travel to [other server]". Upon clicking that, the client would automatically call "client.connect <ip:port>" to the other server.

Is it possible to trigger "client.connect" from the server?

Thanks for any hints and replies.
Not anymore; the client is limited in what commands it can receive from the server.
Okay, thank you very much. So, displaying something like "Hit F1 and type `client.connect <ip:port>` into your console" is the only thing we can do currently?
There may be other ways (though not promoted), but not via command. They may have to disconnect first, but that may work.
What do you mean with ways that are not promoted? Something tha Facepunch does not want to see?
There may be other methods aside from the using the client.connect command, that's all.
Wulf, apologies for bumping an old thread. Would you care to give me some pointers to the "There may be other ways (though not promoted), but not via command" kind of info? I'm on a dev team that's trying to accomplish this server-to-server comms for a prototyping project. My Discord is Kolyma#1893
Kolyma
Wulf, apologies for bumping an old thread. Would you care to give me some pointers to the "There may be other ways (though not promoted), but not via command" kind of info? I'm on a dev team that's trying to accomplish this server-to-server comms for a prototyping project. My Discord is Kolyma#1893
I've only seen it, otherwise I am not familiar with it, sorry. That sort of activity is generally something that could get your servers blacklisted too if abused, so I'd be careful how it is used.
Yes to that. Absolutely nothing nefarious intended. I know I see the technique used on several long-standing severs on the modded tab. Thanks for reply!