Help With Port Forwarding / Firewall

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Help With Port Forwarding / Firewall

Postby eRasus73 » 06 Mar 2019, 05:14

Hello guys,
first off, I'm german and my english is bad and I am very tired. I now tried to fix my connection for the last 3 hours with no success. I never have any issues with ANY other game might it be old or new, hosting gameservers for games (e.g. Battlefield 1942; OpenTTD; Space Engineers) behind my router works fine aslong I do port forwarding.
I am on the newest version of the new, so called, "Downlord's Client" for FAF. In the bottom right corner it show's "Proxy Connection" behind an orange dot. I think that's not the ideal case. A friend said there is a green dot for him with "Direct Connection" or something alike. I searched google and looked in the logfiles but I dont really know what to look after in the logfiles except "port" and "6112" and I only understand less then half of whats in there.

In every game I play, I lose connection to 1 random player after some time, while everyone else is still connected to that person. I played like 10-12 ranked games and in every single game this occured. When I test things with a friend from Denmark in sandbox or do some AIx stomping with him, we can play for hours and hours with no issues.
So I went to check if there needs to be some portforwarding done. I forwarded Port 6112 on UPD to the correct computer in my network. I also completly disabled my Windows firewall and disabled my anti-virus for testing purposes. Using UPnP rather then manual forwarding seems to work, at least my router says my computer has an open Port via UPnP at 6112 UDP once I enabled UPnP and launch the FAF client. So, any ideas? You find my system specs below these questions that came up my mind:

1) Are the connection issues in all my games related to my connection or are there just alot of people with bad connection?
2) Is the "Proxy Connection" causing these issues? How to get "Direct Connection"?
3) Any advanced Windows settings might blocking the right connection?
4) Anti-Virus messing with me?
5) Router not working properly?
6) Should I try on a different PC in the same network?
7) Should I try with the old legacy FAF Client?
8) Should I open more Ports on my Router?
9) Is my ISP blocking the ports? How to find out and solve?
10) How to properly test if the port forwarding works?
11) Should I try a different game port in the client settings? If so, which one?
12) Are there any firewall settings I am missing besides just turning it off?
13) What else is there to think of?



System Specs:
Motherboard: ASUS Maximus VII Hero (uses intel i218-v gigabit interface); latest drivers (both Chipset & LAN); latest BIOS
CPU: Intel i7 4790k
RAM: 16 GigaByte G.Skill TridentX DDR3-2400Mhz CL10
GPU: EVGA GTX Titan (first gen), latest drivers
OS: Windows 7 SP1 64bit, latest updates
Router: AVM FritzBox 7490; latest updates
Connection: wired; 1Gbit LAN IPv4; IPv6 disabled via CAT-6e cable; ISP is giving me 50Mbit down/20Mbit up speed with standard DSL technology (no fiber)
Antivirus: Avast Free Antivirus; latest updates
other Software running in background while playing: Origin, Steam, Teamspeak 3, EVGA Precision X, ASUS AI Suite 3, Logitech Gaming Software, Geforce Experience
FAF-Client: Downlord's FAF Client 0.9.3 beta


If there is anything else you need to know, please ask and I'll try to respond as quick as possible.

Now then, sorry for all the spelling mistakes and horrible english, I gave my best. I hope there is someone who can help.

Best regards,
eRasus73
Attachments
game.log
my game log of today
(324.34 KiB) Downloaded 31 times
downlords-faf-client.log
My FAF-Client log of today
(558.67 KiB) Downloaded 30 times
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby Uveso » 06 Mar 2019, 08:30

1) I am sorry, but this is related to your connection. (If you are the only one who lost a connection to a player but others don't)
2) Remove any portforwarding from your router, the client will make the forwarding with UPnP
3) not very likely
4) no
5) no
6) Yes, then we know, its not your PC/OS/Networkcard/cable (If you use WIFI then use a cable for test. WIFI can always fail)
7) no
8) no
9) no, if your IP is blocking this port then you won't get a connection at all.
10) If you can connect at lesst for a few seconds, then your port forwarding works.
11) any number between 2000 and 65535
12) no
13) Use a networkcable not WIFI; use IPv4 for your internetconnection not IPv6;
14) Start a DOS command window and run a ping while playing. Does the ping command fail or has a high calue if you lost connection to a player ?
Use as command line:
Code: Select all
ping -t www.google.com


[Edit] Update your profile and set "Germany" as location ;)
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Help With Port Forwarding / Firewall

Postby eRasus73 » 06 Mar 2019, 15:19

Hello Uveso,

thank you for your reply.

..
2) It didnt matter at all if I use Port Forwarding manually or use UPnP. The results are the same. Still says "Proxy Connection" in the bottom right corner. I removed the manual port forwarding now and gonna test on.
..
6) Should I just install FAF Client and check if it still says "Proxy Connection" or should I try to play a few games?
..
11) I'm gonna try on 2025; 22015; 41045
..
13) I am on cable, not using wifi.
14) Ping measurements show a fine result, no lost packages, stable ping of around 30-40ms. Even with different ping destinations (e.g. my private hosted server in Frankfurt; Amazon.com; ubuntu.com)

Besides all that, I have another question, what does the connection indicator in the FAF client even mean? What does it tell me? What is the difference between "Proxy Connection" and "Direct Connection"?

What does this tell me? Its from my attached FAF client log.
Code: Select all
2019-03-06 01:00:20.835  INFO 8916 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Switching to random port for STUN connectivity
2019-03-06 01:00:20.838  INFO 8916 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:16179
2019-03-06 01:00:20.951  INFO 8916 --- [JavaFX Application Thread] c.f.c.c.ConnectivityServiceImpl          : Connectivity check successful, state: STUN, address: 62.176.242.227:16179


Is this showing failing connections to other people? 71.178.207.9 is not my public IP adress. It's someone else.
Code: Select all
2019-03-06 01:19:22.444  INFO 8916 --- [Thread-10] c.f.c.c.TurnServerAccessorImpl           : Permitting sends from /71.178.207.9:6112
2019-03-06 01:19:22.552  INFO 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding '71.178.207.9:6112/udp' to channel '16384'
2019-03-06 01:19:22.553  INFO 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding '71.178.207.9:6112/udp' to channel '16385'
2019-03-06 01:19:22.555  INFO 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding '71.178.207.9:6112/udp' to channel '16386'
2019-03-06 01:19:22.555  INFO 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding '71.178.207.9:6112/udp' to channel '16387'
2019-03-06 01:19:22.597  WARN 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding for '71.178.207.9:6112/udp' to channel '16385' failed
2019-03-06 01:19:22.598  WARN 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding for '71.178.207.9:6112/udp' to channel '16386' failed
2019-03-06 01:19:22.599  WARN 8916 --- [Stun4J Message Processor] c.f.c.c.TurnServerAccessorImpl           : Binding for '71.178.207.9:6112/udp' to channel '16387' failed



manually forwarding the Port 6112 gave me this:
Code: Select all
2019-03-06 02:29:37.325  INFO 8916 --- [JavaFX Application Thread] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:6112
2019-03-06 02:29:37.384  INFO 8916 --- [pool-2-thread-4] c.f.client.upnp.WeUpnpServiceImpl        : Found UPnP capable gateway at http://192.168.178.1:49000
2019-03-06 02:29:37.411  INFO 8916 --- [pool-2-thread-4] c.f.client.upnp.WeUpnpServiceImpl        : Port 6112 is already mapped to 192.168.178.36:6112, not changing anything
2019-03-06 02:29:37.426  INFO 8916 --- [pool-2-thread-4] c.f.c.c.ConnectivityCheckTask            : Testing public connectivity of game port: 6112
2019-03-06 02:29:47.472  INFO 8916 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Switching to random port for STUN connectivity
2019-03-06 02:29:47.472  INFO 8916 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:40868
2019-03-06 02:29:47.583  INFO 8916 --- [JavaFX Application Thread] c.f.c.c.ConnectivityServiceImpl          : Connectivity check successful, state: STUN, address: 62.176.242.227:40868
2019-03-06 02:29:53.377  WARN 8916 --- [JavaFX Application Thread] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: quit([])
2019-03-06 02:29:53.426  WARN 8916 --- [JavaFX Application Thread] c.f.c.c.TurnServerAccessorImpl           : STUN error: Invalid allocation


removing forwarded Ports and enabling UPnP gave me this:
Code: Select all
2019-03-06 02:32:08.774  INFO 6140 --- [pool-2-thread-3] c.f.client.chat.PircBotXChatService      : Connecting to IRC at irc.faforever.com:8167
2019-03-06 02:32:08.798  INFO 6140 --- [pool-2-thread-5] c.f.client.update.CheckForUpdateTask     : Checking for client update
2019-03-06 02:32:08.839  INFO 6140 --- [pool-2-thread-5] c.f.client.update.CheckForUpdateTask     : Current version is 0.9.3-beta, newest version is v0.9.3-beta
2019-03-06 02:32:08.856  INFO 6140 --- [pool-2-thread-4] c.f.client.upnp.WeUpnpServiceImpl        : Found UPnP capable gateway at http://192.168.178.1:49000
2019-03-06 02:32:08.897  INFO 6140 --- [pool-2-thread-4] c.f.client.upnp.WeUpnpServiceImpl        : Port 6112 has been mapped to 192.168.178.36:6112

2019-03-06 02:32:09.441  INFO 6140 --- [pool-2-thread-9] c.f.c.c.ConnectivityCheckTask            : Testing public connectivity of game port: 6112
2019-03-06 02:32:09.484 DEBUG 6140 --- [listenerPool0-thread7] c.f.client.chat.PircBotXChatService      : Joining all channels: {}
2019-03-06 02:32:09.486 DEBUG 6140 --- [listenerPool0-thread7] c.f.client.chat.PircBotXChatService      : Joining channel: #pR_clan
2019-03-06 02:32:09.486 DEBUG 6140 --- [listenerPool0-thread7] c.f.client.chat.PircBotXChatService      : Joining channel: #aeolus
2019-03-06 02:32:09.548 DEBUG 6140 --- [listenerPool0-thread8] c.f.client.chat.PircBotXChatService      : Joining all channels: {}

2019-03-06 02:32:19.494  INFO 6140 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Switching to random port for STUN connectivity
2019-03-06 02:32:19.495  INFO 6140 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:52000

For me it looks like its mapping the port via UPnP correctly, can you confirm this?

I will be online in #aeolus for roughly the whole day, trying to fix all this, if you are bored enough to contact me there. :mrgreen: Name is the same as here on forums.

[Edit] I found out how to set my location on my profile, thanks for the hint.
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby eRasus73 » 06 Mar 2019, 20:18

[Update]

Installing Downlord's Client on a different computer in my network (Win10, also LAN cable and no wireless) still gives me "Proxy Connection" even tho I can see that there is now an open port (6112 UDP) in my router via UPnP. Manually mapping that port to that other computer while UPnP is disabled also didn't change a thing. Still saying I'm on proxy.

Choosing a different port, I tried 2025; 22015; 41045, just results in the same outcome. Having UPnP enabled results in the respective ports to be opend automaticly, which I can see in my router settings or router logfile. Turning UPnP off and manual forward those ports shows them forwarded correctly but it still says I am on proxy, on both computers. I played a game with those ports, same problems as before.

I also tried to run FAF with no background programms on both computers, still the same outcome.

So I suspect my router is doing something weird. I checked all network related things and everything is how it should be. DHCP is working correctly, assigning the same IP adresses to the respective devices each time they connect.
I also disabled all other devices in my local network, except the computer I am running the FAF Client on, with no background programms resulting in the same issues.

Trying with a different computer in a friends house in the same street (he has the same ISP, also an AVM FritzBox Router), with all settings made for UPnP or manual forwarding the ports while UPnP is off or on still showed proxy connection on FAF Client launch.
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby Uveso » 06 Mar 2019, 21:35

Well, you have already done what i have in mind.

Just to compare your log with my log.

Your connection:
Code: Select all
: Found UPnP capable gateway at http://192.168.178.1:49000
: Port 6112 is already mapped to 192.168.178.36:6112, not changing anything
: Testing public connectivity of game port: 6112
: Switching to random port for STUN connectivity
: Opened public UDP socket: 0.0.0.0/0.0.0.0:5451
: Connectivity check successful, state: STUN, address: 62.176.242.227:5451


and my log:
Code: Select all
: Found UPnP capable gateway at http://192.168.100.1:80
: Port 47000 has been mapped to 192.168.100.8:47000
: Testing public connectivity of game port: 47000
: Connectivity check successful, state: PUBLIC, address: 84.60.130.13:47000


After testing the port, you got a STUN connection, and it should be a PUBLIC one.

I don't know why this happen. Maybe you are running with IPv6 ? (but i don't know if this makes any differences)
Do you have a cable modem from Unity-Media or Alice or Kabel Deutschland ?
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Help With Port Forwarding / Firewall

Postby eRasus73 » 06 Mar 2019, 23:10

I am running on IPv4 as I mentiontioned above. I am using my AVM FritzBox 7490 with its integrated modem, no other devices. ISP is Wobcom.

I am really running out of ideas here.

Time for some far off ideas, gonna try a VPN now.

[Edit]

Using a VPN connection to my friend who actually has "Direct Connection" (green light in the bottom right of the faf client) still gives me proxy connection.
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby Uveso » 06 Mar 2019, 23:44

Code: Select all
Found UPnP capable gateway at http://192.168.178.1:49000
Port 6112 is already mapped to 192.168.178.36:6112, not changing anything

It looks like you have set the gameport inside Downlords client to port 49000,
but your Router is using the already setted portforwarding on port 6112.

Can you check, if you have maybe still manually forwarded the port inside your router ?

For testing you can set your PC as "Exposed Host" (DMZ). This will foward all ports to your PC:
https://avm.de/service/fritzbox/fritzbox-6360-cable/wissensdatenbank/publication/show/131_DMZ-in-FRITZ-Box-einrichten/

Last Idea: Reset the router to factory settings ?
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Help With Port Forwarding / Firewall

Postby eRasus73 » 07 Mar 2019, 00:01

In your log is shows port 80 on the lines you posted. Thats just the "gateway port" your router uses, mine is using 49000 by default, any requests for UPnP will go via that port.
Or am I mixing something up?

Right now, there are absolutley no manual forwarded ports at all. UPnP is enabled and working, no success.

Before I tried VPN I did a factory reset of the router.

I am gonna try to setup your solution. Gonna report soon.
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby eRasus73 » 07 Mar 2019, 00:10

Still not working, below you find the logfile of the attempt you suggested.

but the interesting lines are this:

Code: Select all
2019-03-06 23:06:36.714  INFO 9228 --- [pool-2-thread-4] c.f.client.update.CheckForUpdateTask     : Current version is 0.9.3-beta, newest version is v0.9.3-beta
2019-03-06 23:06:36.779  INFO 9228 --- [pool-2-thread-5] c.f.client.upnp.WeUpnpServiceImpl        : Found UPnP capable gateway at http://192.168.178.1:49000
2019-03-06 23:06:36.829  INFO 9228 --- [pool-2-thread-5] c.f.client.upnp.WeUpnpServiceImpl        : Port 6112 has been mapped to 192.168.178.36:6112
2019-03-06 23:06:36.830  INFO 9228 --- [pool-2-thread-5] c.f.c.c.ConnectivityCheckTask            : Testing public connectivity of game port: 6112
2019-03-06 23:06:37.412 DEBUG 9228 --- [pool-2-thread-4] c.f.client.chat.PircBotXChatService      : Joining auto channel: [#aeolus, #pR_clan]
2019-03-06 23:06:37.412 DEBUG 9228 --- [pool-2-thread-4] c.f.client.chat.PircBotXChatService      : Joining channel (waiting for identification): #aeolus
2019-03-06 23:06:37.413 DEBUG 9228 --- [pool-2-thread-4] c.f.client.chat.PircBotXChatService      : Joining channel (waiting for identification): #pR_clan
2019-03-06 23:06:37.572 DEBUG 9228 --- [listenerPool0-thread2] c.f.client.chat.PircBotXChatService      : Joining all channels: {}
2019-03-06 23:06:37.573 DEBUG 9228 --- [listenerPool0-thread2] c.f.client.chat.PircBotXChatService      : Joining channel: #pR_clan
2019-03-06 23:06:37.573 DEBUG 9228 --- [listenerPool0-thread2] c.f.client.chat.PircBotXChatService      : Joining channel: #aeolus
2019-03-06 23:06:37.618 DEBUG 9228 --- [listenerPool0-thread3] c.f.client.chat.PircBotXChatService      : Joining all channels: {}
2019-03-06 23:06:37.663 DEBUG 9228 --- [listenerPool0-thread1] c.f.client.chat.PircBotXChatService      : User joined channel: User(super=UserHostmask(extbanPrefix=null, nick=eRasus73, login=294379, hostname=Clk-5761C73.dynamic.wobline-ip.de), userId=fd550c90-e81f-4d72-9b8c-b457a8c78df1, realName=, awayMessage=null, ircop=false, server=, hops=0)
2019-03-06 23:06:37.667 DEBUG 9228 --- [listenerPool0-thread5] c.f.client.chat.PircBotXChatService      : User joined channel: User(super=UserHostmask(extbanPrefix=null, nick=eRasus73, login=294379, hostname=Clk-5761C73.dynamic.wobline-ip.de), userId=fd550c90-e81f-4d72-9b8c-b457a8c78df1, realName=, awayMessage=null, ircop=false, server=, hops=0)
2019-03-06 23:06:45.463 DEBUG 9228 --- [listenerPool0-thread5] c.f.client.chat.PircBotXChatService      : User 'TSS' left channel: #aeolus
2019-03-06 23:06:47.717  INFO 9228 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Switching to random port for STUN connectivity
2019-03-06 23:06:47.718  INFO 9228 --- [Thread-10] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:57769
2019-03-06 23:06:47.822  INFO 9228 --- [JavaFX Application Thread] c.f.c.c.ConnectivityServiceImpl          : Connectivity check successful, state: STUN, address: 62.176.242.168:57769
2019-03-06 23:06:48.293 DEBUG 9228 --- [listenerPool0-thread5] c.f.client.chat.PircBotXChatService      : User joined channel: User(super=UserHostmask(extbanPrefix=null, nick=GeoJeffrey, login=102388, hostname=Clk-E4EF228B.dhcp.chtrptr.net), userId=8997d3f2-ac7d-45e6-b111-e44a540abeeb, realName=, awayMessage=null, ircop=false, server=, hops=0)
2019-03-06 23:06:54.206 DEBUG 9228 --- [listenerPool0-thread5] c.f.client.chat.PircBotXChatService      : User 'Motohead125' left channel: #aeolus


So why in the world is it switiching? I am now exposed host, all ports forwarded to my computer.
Funny, I tried on the other computer (Win10) in my local net with exposed host, same result. Jumping to STUN connection.

The tool called "UPnP PortMapper" shows the right ports are mapped in my router when I launch the FAF Client. In the FAF Client I have set 6112 as my gameport right now, and once I start FAF the tool shows that this port is mapped in my router.

Link: UPnP PortMapper

Me and my friend gonna continue and check if we get it to work via VPN. I have no other ideas left.
Attachments
downlords-faf-client.log
(18.41 KiB) Downloaded 26 times
eRasus73
 
Posts: 8
Joined: 06 Mar 2019, 03:44
Location: Germany
Has liked: 1 time
Been liked: 0 time
FAF User Name: eRasus73

Re: Help With Port Forwarding / Firewall

Postby Uveso » 07 Mar 2019, 01:13

I am also out of ideas, but maybe someone else has an Idea :)

Well, i would test your PC at your friends home. Then you know for sure if there is a problem with your PC or the router/provider.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Next

Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest