Proxy server.

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Proxy server.

Postby Ze_PilOt » 08 Mar 2013, 23:25

Hi,

You may have noticed it, a proxy server is now in place on FAF.

What does it mean ?

When you try to connect to another player, the server acts as a NAT introducer (http://www.faforever.com/mediawiki/inde ... _NAT_works).

At this point, if it can't make you communicate with that player (because a lot of routers can't do the simple task of routing packets), it will make you try to connect through the server.

Meaning that you connect to the server, the other guy connect to the server too, and the server acts like a mail man.

At this point, you will get a warning from the server in your lobby saying that you may have a router problem. It can be you, or the other guy, there is no real way for me to know.
But if you see that A LOT, it's probably you. At some point, I may log these attempts to know for sure you are the cause of the problem.

Still, some routers that has no uPnP support (you need to enable uPnP to make this happen) and no routing setup may still fail.

The next step is to make the lobby encapsulate FA UDP packets into a FAF UDP packet that have more infos.
These infos will allow me to connect on a unique UDP port on the server (currently, it uses one port per player), allowing a better NAT translation detection.

And if that still not work, encapsulate the FA UDP packet into a TCP connection to the proxy server (at the cost of some network performances).

While this is required to make Galactic War run smoothly (as nil won't be seen when you join a game), the proxy server can eat a lot of bandwidth.

The idea is that anyone can put online such proxy server.

People from China or Emirates would also be able to put a proxy server in place to connect to players. It will work as long as that server has access to the whole world without trouble, and to these countries too of course.

I would like to know if it's a viable option for you.

The code is open sourced and available here :
https://bitbucket.org/thepilot/forged-a ... r/overview
(encapsulation is not done yet).
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: Proxy server.

Postby Anaryl » 09 Mar 2013, 15:53

I get this message a bit, which is accompanied by an immediate TCP/IP error and booting from FAF. Is this meant to happen? I tend to get a lot of these varying almost entirely on FAF version.
Image
User avatar
Anaryl
Banned
 
Posts: 453
Joined: 20 Dec 2011, 18:54
Location: Rohangrad
Has liked: 13 times
Been liked: 6 times
FAF User Name: Anaryl

Re: Proxy server.

Postby Flynn » 10 Mar 2013, 20:19

I've got this message a few times. It's really weird :?
Flynn
Evaluator
 
Posts: 599
Joined: 31 Dec 2012, 14:13
Location: GB
Has liked: 4 times
Been liked: 8 times
FAF User Name: Flynn

Re: Proxy server.

Postby Arx » 11 Mar 2013, 01:30

How about make hosts be the "mail man" of their room?
From my experience, "tunngle" may solve some people's connecting problem if they can't directly connect in FAF.
But it's only work between friends.
Arx
Crusader
 
Posts: 32
Joined: 12 Feb 2013, 13:21
Has liked: 0 time
Been liked: 0 time
FAF User Name: Arx

Re: Proxy server.

Postby Eukanuba » 11 Mar 2013, 02:23

I don't understand what this proxy is meant to be doing, but since it's started I've had a lot more connection problems and it doesn't seem to have helped me connect to any problem players.
User avatar
Eukanuba
Priest
 
Posts: 301
Joined: 20 Apr 2012, 19:59
Location: Wales, UK
Has liked: 1 time
Been liked: 0 time
FAF User Name: Eukanuba

Re: Proxy server.

Postby Ze_PilOt » 11 Mar 2013, 09:31

It only appears when you can't connect to someone. Before it was resulting in a NIL.

Nothing else changed.
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


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest