2 questions about session_open and session_connect

Posted By: Reconnoiter

2 questions about session_open and session_connect - 05/13/14 16:05

Hi all,

1). When I create a server with session_open, and let a someone else on the same network (/lan) join it, would this engine detect automatically that it is lan and so do all the sending of data through the lan network instead of through the internet? Or do I need to start the server as LAN (if that is even possible)?

2). When I start a server with session_open and call it e.g. 'serverblabla', and some other guy wants to join from somewhere on the other side of the planet (or whatever region grin ) and does a session_connect(app_name,"serverblabla"); with serverblabla as an exact match & having port 2300 open, would that automatically work? And would let session_connect(app_name,""); let him succesfully join the server serverblabla?

tnx
Posted By: Reconnoiter

Re: 2 questions about session_open and session_connect - 05/14/14 17:35

I see in the manual now that the answer to 2) is no it doesn't work since the client has to connect by typing the right IP adres. I can't find the answer for 1), but I quess it goes automatically?
Posted By: Dico

Re: 2 questions about session_open and session_connect - 05/14/14 22:23

For question 1 , that dependent of how you connect to your server laugh
if u use it like this (session_connect(app_name,"internet ip")), that mean the engine send the data over internet to this client , if you connect like this (session_connect(app_name,"") or session_connect(app_name,"127.0.0.1")) or trough router (session_connect(app_name,"192.168.....") + opned port) that mean the engine send the data over lan.
Posted By: Reconnoiter

Re: 2 questions about session_open and session_connect - 05/15/14 11:29

tnx Dico laugh
Posted By: Dico

Re: 2 questions about session_open and session_connect - 05/15/14 20:24

Originally Posted By: Reconnoiter
tnx Dico laugh

I'm happy to help you laugh
© 2024 lite-C Forums