Map Database  •  FAQ  •  RSS  •  Login

Multiplayer hosting without public IP

<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 14 Dec 2008, 13:10

Multiplayer hosting without public IP

Is it possible to host multiplayer games without public IP and without software like Hamachi? Right now I'm behind a router in local network, and I can host only games for computers in this network. Will port forwarding help? If so, which ports need to be forwarded?
<<

harold

Knight

Posts: 563

Joined: 19 Nov 2007, 23:00

Post 14 Dec 2008, 13:37

Port forwarding would help, but I don't know which ports
<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 14 Dec 2008, 19:45

Okay, but is there a way to check which ports are used?
<<

harold

Knight

Posts: 563

Joined: 19 Nov 2007, 23:00

Post 14 Dec 2008, 23:38

Yes, but the only way I know is "techies only"
Which is using WireShark (aka Ethereal)

Not recommended for anyone who doesn't know it already.
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 16 Dec 2008, 01:53

Well this is a nice program that will show you what sockets each program is using:
http://www.nirsoft.net/utils/cports.html

I did a test and found the KaM TPR seems to use 2300 for the lobby (as in joining the game, choosing scenario) but it then uses a random port from a range for each computer. (the port changed every time I tested it) So unfortunately you would need to open a huge range of ports, making it too difficult.

Shame, but I guess Hamachi/LAN is really the only way to play.
Lewin.
<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 17 Dec 2008, 15:02

Thanks for the help.
One more question by the way: when I forward the port, what do others have to write into the dialog box with IP? (only IP? IP:port? Port isn't changed during game, right?)
<<

harold

Knight

Posts: 563

Joined: 19 Nov 2007, 23:00

Post 17 Dec 2008, 16:28

I've had some success playing KaM multiplayer without my router
But of course that might require you to kill the internet of everyone else in your house :lol:

Others only have to write the IP.. well, that worked about half the time anyway, the other half it just randomly failed - or maybe that was because we were forgetting the port..?
<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 17 Dec 2008, 17:10

Thanks once again.
But of course that might require you to kill the internet of everyone else in your house
Other computers are often turned off, so it won't be hard :P
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 19 Dec 2008, 05:20

There are two ways to do this:

A) Remove your firewall completely. This will generally involve not going via your router, (plugging your modem thing straight into your computer) or turning the firewall off in your router. Could be dangerous though so I'd recommend disconnecting all other computers from the network and not leaving it like that for too long.

B) Forwarding a port in your router. The external IP address shouldn't be needed, just leave it open to anyone. Internal (local) IP address should be your computer. The port must be the same for local and remote.

The first way is the most reliable, because then there is no chance of port ranges stopping you. Both people must do one of these for it to work. The people joining the game should type the hosts external IP address into the dialogue, (go here to find out what that is) otherwise it won't find them. (as they are not on your network)

Hope this is all of help to you.
Lewin.
<<

harold

Knight

Posts: 563

Joined: 19 Nov 2007, 23:00

Post 19 Dec 2008, 12:11

"A" solution of turning the hardware firewall off wouldn't help much though, you'd still have to disable NAT (although the firewall could also give trouble, NAT is the real problem here)

Note that if you want to solve the connection problem in this way, it's probably the host that should do it, since outgoing traffic through NAT is forwarded automatically, but incoming traffic can't be (since there is no way the NAT device could know where it should go) - and typically the clients are the ones who initiate the connections (how would the host know who to connect with? ok it's possible to use an external server and then have the host query it for clients, but why do that?)
<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 19 Dec 2008, 17:51

I've successfully hosted some other games, the biggest problem is the randomly chosen port. (configuration of my router is very strange and difficult, so I don't want to change anything else except port forwarding).
Both people must do one of these for it to work.
Wait... all of the players in KaM? I've played as a guest in some other games without public IP/port forwarding. Is KaM different?
<<

harold

Knight

Posts: 563

Joined: 19 Nov 2007, 23:00

Post 19 Dec 2008, 21:27

Kuba.. you read my post?

*) KAM has a crazy port issue which leads to:
*) you have to disable NAT or skip the NAT device since the port can not reliably be forwarded
*) but of course only if you're the host, since NAT only blocks incoming traffic due to lack of knowledge of where it should be delivered - outgoing traffic can be routed automatically, so guests are not affected by their own NAT
*) so: no, KAM is not different, except it creates a mess with the ports so simple port forwarding is not enough (if your router supports complex port forwarding than that would be cool of course, but most don't)

Return to “General Talk”

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests