Gamestudio Links
Zorro Links
Newest Posts
A8 and Draw_Line3D (SOLVED)
by Dooley. 06/19/19 21:27
Bring the old grin back!
by alibaba. 06/19/19 20:35
FXCM: "Can't connect to price server"
by jcl. 06/19/19 15:47
Data Execution Prevention Strikes Again
by Dooley. 06/19/19 15:38
assert
by jcl. 06/19/19 14:59
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
6 registered members (Dooley, AndrewAMD, alibaba, Quad, 2 invisible), 645 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Qw3rty, Dal, Carson, giantj, dh85
18236 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 questions about session_open and session_connect #441132
05/13/14 16:05
05/13/14 16:05
Joined: Dec 2011
Posts: 1,811
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,811
Netherlands
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

Last edited by Reconnoiter; 05/13/14 16:06.
Re: 2 questions about session_open and session_connect [Re: Reconnoiter] #441167
05/14/14 17:35
05/14/14 17:35
Joined: Dec 2011
Posts: 1,811
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,811
Netherlands
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?

Re: 2 questions about session_open and session_connect [Re: Reconnoiter] #441173
05/14/14 22:23
05/14/14 22:23
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
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.

Re: 2 questions about session_open and session_connect [Re: Dico] #441205
05/15/14 11:29
05/15/14 11:29
Joined: Dec 2011
Posts: 1,811
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,811
Netherlands
tnx Dico laugh

Last edited by Reconnoiter; 05/15/14 11:29.
Re: 2 questions about session_open and session_connect [Re: Reconnoiter] #441222
05/15/14 20:24
05/15/14 20:24
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: Reconnoiter
tnx Dico laugh

I'm happy to help you laugh


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1