Forged Alliance Forever Forged Alliance Forever Forums 2018-06-10T18:55:49+02:00 /feed.php?f=3&t=16296 2018-06-10T18:55:49+02:00 2018-06-10T18:55:49+02:00 /viewtopic.php?t=16296&p=164787#p164787 <![CDATA[Re: Cannot connect to clients when behind a VPN]]>

Statistics: Posted by Wesmania — 10 Jun 2018, 18:55


]]>
2018-06-10T05:14:09+02:00 2018-06-10T05:14:09+02:00 /viewtopic.php?t=16296&p=164766#p164766 <![CDATA[Re: Cannot connect to clients when behind a VPN]]> Another thing has now attracted my attention. In the forever.log file I found lines like these:

Code:
2018-06-10 05:18:08,454 INFO     client.connection              Outgoing JSON Message: {"command": "InitiateTest", "target": "connectivity", "args": [6112]}
2018-06-10 05:18:11,447 INFO     client.connection              Outgoing JSON Message: {"command": "ProcessNatPacket", "target": "connectivity", "args": ["10.42.0.1:194", "Are you public? 182983"]}
2018-06-10 05:18:11,447 INFO     connectivity.helper.ConnectivityHelper Unknown natpacket
2018-06-10 05:18:11,447 INFO     client.connection              Outgoing JSON Message: {"command": "ProcessNatPacket", "target": "connectivity", "args": ["10.42.0.1:194", "Are you public? 182983"]}
2018-06-10 05:18:11,448 INFO     connectivity.helper.ConnectivityHelper Unknown natpacket
2018-06-10 05:18:11,448 INFO     client.connection              Outgoing JSON Message: {"command": "ProcessNatPacket", "target": "connectivity", "args": ["10.42.0.1:194", "Are you public? 182983"]}

at the beginning of every game session. Now 10.42.0.1 is a gateway node in my VPN, and it most definitely does not listen for anything at port 194. These IP and port are always the same for any game session.
What's more, I see connection attempts to some clients (where it says "Hello from...") on address 10.42.0.1 and a random port, while for others their real IP is used. There's no correlation between this and the clients being unreachable in a fashion described in the original post.
This may be the problem. I will look further into the source code to try and locate its root.

Statistics: Posted by ashpool — 10 Jun 2018, 05:14


]]>
2018-06-08T03:14:38+02:00 2018-06-08T03:14:38+02:00 /viewtopic.php?t=16296&p=164646#p164646 <![CDATA[Re: Cannot connect to clients when behind a VPN]]> +1. E.g. when the port set in FAForever was 6112, the supcom would actually use 6113, 7712 -> 7113 and so on.
My logical solution was just decrementing the port number by 1, and that seemed to have done the trick. After setting the port number to 6111 supcom would now use the port 6112 I wanted it to. But players would still fail to connect. So I took another look on the forever.log file, and found out that the client (or whatever is writing to forever.log) was attempting to use the port 6111, which wasn't forwarded, and obviously the connectivity state would become STUN. Not willing to put an awful lot of thought in it, I just forwarded the port 6111 on my VPS as well. Did that help? Nope. I'll keep you updated.
I'd like to point out that a similar issue has been discussed here viewtopic.php?t=15705&p=159070 but no solution was found.

Statistics: Posted by ashpool — 08 Jun 2018, 03:14


]]>
2018-06-07T15:27:58+02:00 2018-06-07T15:27:58+02:00 /viewtopic.php?t=16296&p=164630#p164630 <![CDATA[Cannot connect to clients when behind a VPN]]>
HOWEVER, each time I join a lobby, there're always 1-3 people on the list I can't connect to. It just says "Connecting to ***..." forever. ReFAFing doesn't seem to work for neither me nor them. I have tried switching to the port 7712/udp and still had no luck. I always get kicked and that really annoys me.

Attached are the logs which contain records for my last few attempts to play a game. It can be seen that connection state is PUBLIC in all cases. I would like to hear some suggestions on what could possibly go wrong in such a scenario. I can probably fix the problems myself, I just want them pointed out, as I don't know all the technical details of how FAF connects to other players.

Statistics: Posted by ashpool — 07 Jun 2018, 15:27


]]>