UPnP Support

Tournaments announces and results.

Moderators: FtXCommando, Stups

UPnP Support

Postby thygrrr » 24 Mar 2012, 04:01

The lobby now has UPnP support in the "Options->Settings->Game Port..." menu.

Please feel free to try it if you are having connection issues and tell me how it works out for you.

Conversely: DON'T TRY IT if you can connect to games and host games and aren't getting nil pings / red pings to people. Your connection is most likely fine.

Note: If you use UPnP, it's probably a bad idea to also use forwarded ports at the same time (especially if these ports are the same as the one you use for UPnP).
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: UPnP Support

Postby thygrrr » 25 Mar 2012, 16:44

If you get a crash on shutdown or before the game launches, it's mostly related to an error in win32com, meaning the UPnP feature can't work on your PC (usually UPnP is disabled or you're using a nonstandard firewall etc.)

It shouldn't be much of an issue. I'll add code that detects this inability at some time and will offer you to deactivate the option accordingly.
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: UPnP Support

Postby thygrrr » 26 Mar 2012, 11:29

I noticed UPnP is not working for quite a few people who try it. That is because their firewalls are not configured properly, or because their accounts have very limited access to the firewall controls. However, on a normal Windows 7 Home, with a default user account (not administrator), UPnP should work fine as it is. It also works on my Win 7 Pro machine, and has reportedly worked on Windows XP.

One right way to do that is to have the Windows Firewall turned ON and running with recommended settings. If you mess with your firewall settings, chances are you've turned Windows' UPnP support off entirely.

Also, if your computer has two network interfaces that are both connected (e.g. a PC with an Ethernet cable and a WLAN connection), UPnP can't work and thus selecting the option won't help either (I'm searching for a workaround there, but I think it's a design flaw in Windows' NATUPnP implementation).

I have a bunch of ideas but the whole feature will have to stay experimental for a while. :) The problem is, it's impossible to autodetect what users need, and the more options I give them, the more they are going to screw up. Even worse, I've seen people who were able to play PERFECTLY screw up their settings by turning on UPnP (which then makes their router trip over its own, perfectly set up port forwardings or NAT tables).

Why? Whyyyyy? Don't try to fix anything if it ain't broke, people. Seriously. :cry:
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: UPnP Support (experimental)

Postby Ze_PilOt » 14 Apr 2012, 21:23

On some occasions, it seems that a "correctly" fordwarded 6112 port isn't working with FA.

In these cases, using put a complete random port (12345 for exemple) and uPnP solved the problem.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: UPnP Support (experimental)

Postby Sandra_ » 15 Apr 2012, 22:03

I found a nice Video for the settings to do a port forwarding with a Belkin Router:

http://www.youtube.com/watch?v=BgSVzp3c6ZM
User avatar
Sandra_
 
Posts: 4
Joined: 04 Apr 2012, 21:47
Has liked: 0 time
Been liked: 0 time
FAF User Name: ThePrincess

Re: UPnP Support (experimental)

Postby Gyle » 27 Apr 2012, 15:13

Gotta say i have had two peeps now who have had connection problems. One of them the port forwarding didn't work either. Tried the UPnP thing and Boom! Good job Technical peeps.
My youtube Channel:http://www.youtube.com/user/felixlighta?feature=mhee

"Don't take life too seriously... no one gets out alive."
User avatar
Gyle
Avatar-of-War
 
Posts: 261
Joined: 05 Apr 2012, 00:35
Location: UK
Has liked: 52 times
Been liked: 28 times
FAF User Name: Gyle

Re: UPnP Support (experimental)

Postby pip » 25 Jul 2012, 11:27

I used it too and it works great.
pip
Supreme Commander
 
Posts: 1826
Joined: 04 Oct 2011, 15:33
Has liked: 191 times
Been liked: 86 times
FAF User Name: pip

Re: UPnP Support (experimental)

Postby Helcaraxe » 18 Jan 2013, 22:16

Anothern plug for this - before using it, ~40% of players couldn't connect to my games. Since I enabled it, I haven't experienced a single instance of the problem. Many thanks, thygrrr.
Napalm said: "Oh my god! Another phone call, are you serious? If this is the President again, I'm gonna get mad."
User avatar
Helcaraxe
Contributor
 
Posts: 48
Joined: 12 Jan 2012, 00:06
Has liked: 4 times
Been liked: 1 time
FAF User Name: Helcaraxe

Re: UPnP Support (experimental)

Postby Kof » 18 Mar 2013, 10:24

I was using port forwarding and this was working fine and one day (no other changes made to the PC) I started experiencing connection issues. I couldn't connect to most people in FAF - some I could fine, most wouldn't connect. I could create games (and join some games) but wouldn't connect to some or most people in the game lobby. I tried setting up my IP as a DMZ on the router (and restarted the router and PC) but this wouldn't work either. So I enabled uPnP in FAF - this wouldn't work either.

Sad an dejected, I logged into my router and went to the advanced section and saw an option "enable uPnP", I said to myself, "Fuggit sure we'll tick that checkbox and see how we go". One reboot of the router and PC and connection issues are a thing of the past. There may well be a God after all. I'm sure she's a very nice diety.

Just thought I'd share that :-)

Now I'm off to find a game in the lobby. C ya.
Kof
Avatar-of-War
 
Posts: 119
Joined: 09 Jan 2013, 18:17
Has liked: 9 times
Been liked: 3 times
FAF User Name: Kof


Return to Tournaments

Who is online

Users browsing this forum: No registered users and 1 guest