Author Topic: Port Forwarding Through Internet Connection Sharing...  (Read 1861 times)

Offline GTD-Carthage

  • Newbie Mark II
  • *
  • Posts: 13
Port Forwarding Through Internet Connection Sharing...
« on: March 31, 2014, 12:09:23 pm »
Hello all! I'm currently trying to set-up what I'm hoping to be a stable multiplayer game but as expected, things aren't going so well...

I have a question regarding about how AI War answers pings from online port checking tools. I'm currently using Simple Port Tester by PcWinTech.com as well as yougetsignal.com.

My connection is relatively complex... it's:

Host PC ---[CABLE]--> Laptop ---[WIRELESS]--> WiFi Hotspot/Router

I've been able to create a series of firewall rules as well as port forwarding rules on the laptop and router. According to Simple Port Tester, my ports are open so far... however, when I leave AI War to host and use a web-based port tester, it doesn't see anything. When I do use Simple Port Tester, the web-based one can see it.

Is there something I'm possibly missing here? At the moment, all connecting players keep getting the "Disconnected and Not Discovering" thing.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Port Forwarding Through Internet Connection Sharing...
« Reply #1 on: March 31, 2014, 12:18:22 pm »
For diagnostic purposes, do you have a way of trying to host from the laptop (which has one less hop to go), and/or of directly connecting (by wire or wireless) the host PC to the router (to skip the laptop)?

I'm not sure if that's the problem, but it'd be helpful to know.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Port Forwarding Through Internet Connection Sharing...
« Reply #2 on: March 31, 2014, 12:23:07 pm »
Hmmm... that is an unfamiliar setup to me, to be honest.  The main things to look for, in general, are:

1. Are the ports forwarded to the proper place at each step of the way.
2. Are there any firewalls blocking the ports, or the applications in general, at any step of the way.
3. Possibly: Is it correctly passing the source of the original packets through at all levels, so that when the host would respond, it knows how to get them back?

#3 is the tricky one, with an odd setup like this.  If the host is able to get packets in, but can't send them back to the right destination because it can't tell one from the other, then you would get kind of a one-way speaker.  Client says "Hello!" and the host hears it, and responds back, but the client never hears the response and thus assumes the host did not hear.  I honestly don't know the factors that would muck this up, because it's software-specific to all the various things in the middle layers of your routing chain.

Generally there is not a problem with this, and so I don't think I have ever suggested this as a possible problem to anyone before, in 5 years of doing tech support for the game, heh.  But I remember back in the early 2000s when I was working as a sysadmin, I had set up a private network inside a network, with a single machine acting as a bridge between the two.  There were all sorts of tricky problems that came up out of that, relating to translating between a class C and class B subnet style, mainly.  I eventually got them all worked out, but this was windows 2000 and was using completely different software, not games.  The only reason I bring this up at all is because it's the closest thing to your setup that I can think of.

Software that creates virtual private lans, like Hamachi (or the various better software solutions suggested around here, there are some suggestions from other players on things they much prefer) may be better programmed to deal with odd setups.  It's specifically using NAT punchthrough an intermediate servers and whatnot to handle pretty much any complex case that ordinary networked software can't navigate.  In essence that's kind of the point of their software, that they navigate all those oddities.  With a setup like yours, you may ultimately find you need to rely on software like that.  And in the case of Hamachi, you may even find that you never get a green connection, but only get a yellow one, since it may have to route through their servers instead of setting up direct connections, specifically because of the #3 conditions I mentioned above.  I don't know for sure, though.

I wish I could give you a more helpful answer, but you've really got a stumper there!  I hope this is of some help at least.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!