Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / multisync(any networking) question

Author
Message
SFCBias
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location: Hephzibah, GA, USA
Posted: 6th Oct 2009 00:35 Edited at: 6th Oct 2009 00:43
Is it possible to use multisync to connect to another computer using its physical IP(e.g. http://www.whatsmyip.org/)

Example:
Drowneath
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location: In your eyes
Posted: 6th Oct 2009 04:22 Edited at: 6th Oct 2009 04:25
Yes, under the following conditions:
- Multisync-based server is hosted in the target IP
- The target IP address is assigned as public by the ISP
- The server must directly connected to the internet. If its connection is splitted by a router, make sure that you know how to do port forwarding.

if(asleep) sheep++;
SFCBias
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location: Hephzibah, GA, USA
Posted: 6th Oct 2009 05:11 Edited at: 6th Oct 2009 05:34
Okay so i think the port forwarding is my problem. well i noticed that even though i call NetSetPort(1337); The clients connect through two(usually consecutive) unregistered ports. (eg.60164,60165)

Edit: I forwarded ports 60000 to 65535 and successfully connected to myself via Physical IP

Edit Edit: Server Log on Successful connect. NetSetPort(60000) Called on both sides
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Oct 2009 05:16
You can only (and only need to) set the server's local port, and this is the port that clients will send data on. The local port of the clients doesn't matter.
SFCBias
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location: Hephzibah, GA, USA
Posted: 6th Oct 2009 05:28 Edited at: 6th Oct 2009 05:28
Quote: "You can only (and only need to) set the server's local port, and this is the port that clients will send data on. The local port of the clients doesn't matter."


If i don't set the local port on both client and server i get Error Message: Timed Out
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Oct 2009 06:37
What I meant was that NetSetPort sets the server's local port and the client's remote port (the port the client sends the data to).

Login to post a reply

Server time is: 2024-11-20 13:21:50
Your offset time is: 2024-11-20 13:21:50