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.

DarkBASIC Professional Discussion / Multisync 1.4.1 problem

Author
Message
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 5th Sep 2014 20:04
I tried to search in the forum, but i cant find out a solution..

i'm tring to connect (server client) to PC in different cities, it means NOT in the same NET.

the same code that works in a single pc, using 127.0.0.1 as IP of the server, and with 2 PC under the same router, using 192.168.1.X (the ip addres of server PC) DO NOT works at all with 2 PC in different houses.

I'm using the external IP of the server PC (found with whatsmyip.com)

I am forwarding the port 8181 on BOTH PC (client and server), but i suppose that only on server side in necessary.



can someone help me?
the port number is not ok? (8181)

Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Sep 2014 20:47
1) Make absolutely sure that port 8181 is open, and that the internal port 8181 is forwarded to the external port 8181. For example, if your internal IP is 192.168.1.5, and your external IP is 213.100.2.2 you'd need to do:
192.168.1.5:8181 -> forward -> 213.100.2.2:8181

You can use nmap to determine what ports are open:


2) Make sure your clients are connecting to the correct port. When they enter the IP address, try entering "213.100.2.2:8181" instead of just "213.100.2.2".

I like offending people. People who get offended should be offended. -- Linux Torvalds
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 00:37
1) using ip:port (e.g. 213.100.2.2:8181) just give me a error code

2) where and how i can use the command $ nmap ip ?

3) why are you eating my CATS???

Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2014 01:39 Edited at: 6th Sep 2014 02:09
1) What error code are you getting? You're using the code in your first post?

2) Download the binary from the link I gave you, install it, open a command prompt, cd to wherever nmap.exe is and do:


direct link: http://nmap.org/dist/nmap-6.47-setup.exe

The "$" isn't part of the command, it indicates that a shell is being used (BASH to be precise). There are a few standards, "$" is bash, # is a shell with root access, % is zsh, and I'm not even sure what windows cmd would be...

[EDIT] Here's a sample output when I do it to my outside IP address:




3) Fixed.

I like offending people. People who get offended should be offended. -- Linux Torvalds
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 11:00
My 8181 is (for some reason) closed.
But now, my goatz are dead and my eyes are wide OPEN.

(results of nmap)


Now, i suppose multisync use TCP, i will try to use port 13722 (that is opne in the nmap's scan) AND i will try to find out HOW to open 8181.

I'm so NOOB in this WOOD that i cant believe the GOATZ will eta me..

Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2014 12:24
You can't use port 13722 because it's already being used by the process "netbackup". You have to use a port that isn't being used and isn't listed by nmap). Multisync uses TCP/IP and the default port is 3999.

I did two tests.

I have Windows 7 running in VirtualBox and multisync running inside it on port 3999. I forwarded 127.0.0.1:3999 to the host computer's local IP, 127.0.0.1:8181 (port 8181 wasn't being used). I then ran nmap from my host computer:



The second test: The computer hosting the VM has an internal IP of 192.168.1.12, so instead of forwarding multisync to its local address, I forwarded it to that local address. I then ran nmap on my laptop and scanned my computer:



I could now forward 192.168.1.12:8181 to my router and do an nmap from the outside and expect the same result. There's something wrong with the way you're forwarding ports.

I like offending people. People who get offended should be offended. -- Linux Torvalds
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 16:06 Edited at: 6th Sep 2014 16:08
i tried to forward port 8181 using gateway (router) IP instead of PC\'s internal IP (191.168.1.1 instead of 192.168.1.24)

now nmap simply dont put \"8181 closed unknown\"


and in the client?
it\'s necessary to set port or not?

(btw, THX for the help!)

Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2014 18:03 Edited at: 6th Sep 2014 18:04
If you don't specify a port for the client, Multisync defaults to port 3999. Try mapping that to <router IP>:8181 instead and see if that gets you anywhere.

I'm not sure how routers work but it's possible you have to restart the router for it to take effect. That might be something to try as well (usually that's not required though).

I like offending people. People who get offended should be offended. -- Linux Torvalds
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 18:46
the situation is:

my external IP is now: 149.71.143.90
my internal IP is: 192.168.1.138

the virtual server page of the router is:
[img]
upload[/img]

as IP i tried router's and internal..

still no connection from outside

Lucka - gawteam coder - www.gawgames.com
Seditious
User Banned
Posted: 6th Sep 2014 18:54
Quote: "using 127.0.0.1 as IP of the server"


You can't connect from other machines if you use this interface; it's only for running a server/client on the same computer.

Host using 192.168.1.X, and make sure the router on the server-end has the relevant TCP port forwarded (in your case 8181). You have to make sure that neither the host or the client's firewalls are blocking the connection.
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 19:07
Situation:

SERVER SIDE:



external IP is now: 149.71.143.90
internal IP is: 192.168.1.138


[img]
upload[/img]





CLIENT SIDE:



Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2014 19:26
Am I missing something? I don't seen 192.168.1.138 in that screenshot.

I like offending people. People who get offended should be offended. -- Linux Torvalds
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 19:46
Yes, tried with 192.168.1.1 AND with 192.168.1.138

The rest of the forwarding was simply already written.. there is something MORE than forward 8181 that i USEFULL?

Lucka - gawteam coder - www.gawgames.com
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 19:53
now is like this:

[img]
image share[/img]

The SERVER is running NOW, the server IP is:149.71.143.90

the client code is:



taken from EXAMPLE1 of Multisync..

If someone wanna try to connect..

Lucka - gawteam coder - www.gawgames.com
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Sep 2014 20:01 Edited at: 6th Sep 2014 20:03
[EDIT] Argh, I spent too much time skyping someone so you posted before me.

This is the old post for the record:
http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=2532850

I like offending people. People who get offended should be offended. -- Linux Torvalds

Attachments

Login to view attachments
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 6th Sep 2014 20:23
i forgot..


NO Firewall, not in Windows (noether server and client PC) not in the routers..

Lucka - gawteam coder - www.gawgames.com
Lucka
20
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 8th Sep 2014 14:58
Just for INFO. I did it. It works.
No secrets, no news..

Just changed ADSL type (from Hyperlan Wirless to normal Cable ADSL) and changed ROUTER.

No more PORT settings, so Multisync use the default port 3999.

On server side forwarded port 3999 to internal server's PC IP.
Exception on the firwall.

On client side nothing needed. No forwarding no excpections in the firewall.

It simply WORKS properly now.

Lucka - gawteam coder - www.gawgames.com

Login to post a reply

Server time is: 2025-05-15 14:26:31
Your offset time is: 2025-05-15 14:26:31