Difference between revisions of "Connection issues and solutions"

From FA Forever Wiki
Jump to navigation Jump to search
(Changed path to game port option)
m (Added Navbox to page (template))
Line 153: Line 153:
  
 
[[File:Faf3.png]]
 
[[File:Faf3.png]]
 +
 +
 +
 +
{{Navbox FAF Tabs}}

Revision as of 10:55, 15 April 2015

How networking is working (or not)

How NAT works

Unable to connect to someone

Do I have a problem ?

If you can't connect to a game/someone, it can be caused by that someone else having improper settings. In order to be sure :

  1. Try to host a game.
  2. in the lobby, click "Help - Show Logs".
  3. Open the file "faforever.log" in a text editor.
  4. Search for these lines.


  • faf.fa.relayer UDP relay port 6112 UDP relay port 6112

This line is port you've set in the lobby. It's the one that FA will try to open locally.

  • INFO faf.client port used : 55490

The server is asking your FA to send it a packet. It will check what external port was used (your WAN port). You must be aware that there are two separate port : The port you've opened locally (6112) and the port outsiders see.


In this case, the port is 55490. It means that your router is routing the port 55490 to your local port 6112.


Normally, the port used should be 6112. The fact that the router has opened a different port can be a potential problem, and it's probably due to a bad routing setting. You probably want to fix it.

If you don't see that line, it mean that your port is not reachable at all.

The (maybe) easy fix : uPnP

In the lobby menu Options --> Settings --> Game Port tick the checkbox labeled uPnP. With uPnP enabled, the lobby should be able to communicate with your router to set the (temporary) good settings for FA.

Please feel free to try it if you are having connection issues.

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.

The longer but definitive fix

Forged Alliance requires an open port in order to work correctly. You can choose any port (port number in Options --> Settings --> Game Port), but that port needs to be open.


Two ways to achieve that :

  • Put your router on DMZ
  • Open and route a port in your router (6112 is the default one in FAF).

For DMZ, consult your router's manual.


If you need help learning how to forward a port in your router, check out:

http://portforward.com/english/applications/port_forwarding/Supreme_Commander/Supreme_Commanderindex.htm

Select your router in the list (or the closest one) and follow the instructions.


Some routers auto-forward ports so it is sometimes possible to connect without having to manually forward any ports.

Sometimes if you can connect to everyone apart from one player, quit the game, In Options --> Settings --> Game Port adjust the port number to something random - eg 6113 - and try again.

Changing this value between games can solve this unusual problem.

It's still not working !

  • Try another port than 6112. 7001 for example (both in FAF lobby and in your router)
  • Don't use uPnP and routing at the same time. Disable uPnP if you try to configure your router !
  • Post in http://www.faforever.com/forums/viewforum.php?f=3. Don't forget to read what is needed to make a correct error report !

Multiple computers behind the same router

Let's say you have two computer behind the same router.

  • Computer 1 is 192.168.0.135
  • Computer 2 is 192.168.0.174

Each computer will need a separate port in FAF. By default, it's 6112. Change it in Options --> Settings --> Game Port.

For my example :

  • Computer (192.168.0.135) will use port 6112
  • Computer (192.168.0.174) will use port 7002

In your router, you need to route these ports for the right computer. For exemple, in my DLINK router :

File:DlinkExemple.png

As you can see, each port is routed to the right computer. It's very important that the IP / port couple is correct.

For your router, follow this link :

http://portforward.com/english/routers/port_forwarding/Linksys/WRT160Nv2/Supreme_Commander.htm

Select your router, replace the port and the IP with your settings.

How do I check if the settings are correct?

Simple :

  1. Try to host a game from your first computer.
  2. Try to join that game from the second computer.


If it doesn't work, look at the file named game.log (or game if you don't see the extensions).

  • It's normally created in "c:\ProgramData\FAForever\logs\" in Vista/Seven/Eight. You can find the directory by using HELP - Show logs in the lobby.
  • It's a text file that you can open with notepad.

You will see a lot of text in it. But you should see this :

  • info: GPGNET: setting nat handler to 0x?????004
  • info: LOBBY: Game port 6112[UDP] opened. (that port will be the one setted in FAF)
  • info: LOBBY: starting with local uid of 21 [Ze_PilOt] (that's your id and nickname)
  • info: GPGNET: entering lobby state. (meaning that the initialisation is complete)
  • info: LOBBY: Connecting to host "test" [213.219.163.245.bro01.dyn.edpnet.net:7002, uid=47] (That's the expected connection : the other computer connection and port).

and :

  • info: NET: using deflate compression for sends to 213.219.163.245.bro01.dyn.edpnet.net:7002.

These lines are VERY important. That's the incoming connections you receive.

The most important part is :7002.

  • So, for computer one (port 6112), I must see an incoming connection from 7002 port.
  • And the other way, for computer two (port 7002), I must see an incoming connection from 6112 port.

If the port is not correct in the log, that's mean that the computer was not able to use the right port, and used a random one. That's mean that if I don't see "7002" in the log of the "6112" computer, the "7002" computer is not correctly routed.

In that case, the expecting connection (Connecting to host "test"...) is waiting for a port xxxx, while the computer is receiving a totally different port. That can or cannot work.

Timing out in lobbies

Windows 7 ingame lobby issue tutorial ( may fix some problems )

Windows 7 users may encounter some issues , symptoms are : - When people are connnecting to a game you receive "host timed out" , doesnt happen with all users . - Automatch problems ( ranging from no connection at all to black screen )

All of this will occur in the ingame lobby but nor on FAF lobby or ingame.

To solve this , here is a hint : Windows 7 presets will stay the same even if you desactivate the onboard firewall , so even if you desactivate it , some functions will not be enabled .

Simple way to do is to allow your windows 7 firewall to operate , and then , get to the advanced parameters . ( start , config panel , windows firewall , advanced parameters ) File:Faf.png

Then , in advanced options you go for the first option who's talking about incoming trafic rules and look for three software groups :

File:Faf2.png

Then you need to select the option that let packets go through without any check and check all the permission type . With that setting , im running 8 out of 10 Games instead of 1 out of 10 before the settings , hope this will help most .

File:Faf3.png