I had some problems connecting so here is what I did to fix things for me.
Step 1: Tell the Game to use a defined UDP Port.
Step 2: Tell my router to direct the UDP packets to my game machine
I use a crusty old ADSL modem from the late 90's and an old gentoo linux box as my gateway. It uses IPTables 1.4.16.3 on Kernel 3.10.7 My Linux machine is performing NAT from my private network to the internet everything works except udp return packets. ED uses RANDOM udp so my firewall is dropping my connection pathway. Solution?
I know I should upgrade to a new uPNP thingy but I burnt all my spare cash to get on the Alpha
AU$ -> £ exchange rate really kills.
I hope this helps someone else. It took me a few hours reading to get it sorted.
*** port's and ip's have been changed to protect the innocent.
Step 1: Tell the Game to use a defined UDP Port.
Look for the AppConfig.xml file. Mine was in this location
C:\Program Files (x86)\Frontier\EDLaunch\Products\FORC-FDEV-D-1000\AppConfig.xml
but it could also be here for 32 bit systems.
C:\Program Files\Frontier\EDLaunch\Products\FORC-FDEV-D-1000\AppConfig.xml
Use notepad.exe to edit it if you double click it will probably try to launch in Internet Explorer (for good sake!!!)
Take a look at the lines (26-27 in my file):
Update the Port="" to read Port="50100"
Update the UpnpEnabled="0"
you can pick any number above 1000 and below 65535 for the port but remember the number you choose for the next bit.
Now, look for the xml close statement
mine was on line 40 you need to add the following above this line.
<Self name="my computer" ip="121.45.7.xxx" port="50100" />
I think they call this "Adding the <self/> section inside the <Network/> section" in xmlspeak.
The port you set needs to match above and the ip should be YOUR External IP. Ask Google to make sure you have the right numbers. If you are on Dynamic IP like me you may need to fix this from time to time when you reconnect to the interwebs.
C:\Program Files (x86)\Frontier\EDLaunch\Products\FORC-FDEV-D-1000\AppConfig.xml
but it could also be here for 32 bit systems.
C:\Program Files\Frontier\EDLaunch\Products\FORC-FDEV-D-1000\AppConfig.xml
Use notepad.exe to edit it if you double click it will probably try to launch in Internet Explorer (for good sake!!!)
Take a look at the lines (26-27 in my file):
<Network
Port=""
UpnpEnabled="1"
Port=""
UpnpEnabled="1"
Update the Port="" to read Port="50100"
Update the UpnpEnabled="0"
you can pick any number above 1000 and below 65535 for the port but remember the number you choose for the next bit.
Now, look for the xml close statement
</Network>
mine was on line 40 you need to add the following above this line.
<Self name="my computer" ip="121.45.7.xxx" port="50100" />
I think they call this "Adding the <self/> section inside the <Network/> section" in xmlspeak.
The port you set needs to match above and the ip should be YOUR External IP. Ask Google to make sure you have the right numbers. If you are on Dynamic IP like me you may need to fix this from time to time when you reconnect to the interwebs.
Step 2: Tell my router to direct the UDP packets to my game machine
I use a crusty old ADSL modem from the late 90's and an old gentoo linux box as my gateway. It uses IPTables 1.4.16.3 on Kernel 3.10.7 My Linux machine is performing NAT from my private network to the internet everything works except udp return packets. ED uses RANDOM udp so my firewall is dropping my connection pathway. Solution?
Add some IPTABLES RULES
First I tell the iptables to destination translate the udp packets to my internal game machine.
Second I added some connection tracking and acceptance of new state packets to the INPUT rule. I am not sure it is needed for udp but the config is there and it is working so I will mention it.
First I tell the iptables to destination translate the udp packets to my internal game machine.
iptables -t nat -I PREROUTING 1 -p udp -m udp --dport 50100 -j DNAT --to-destination 192.168.28.xxx
Second I added some connection tracking and acceptance of new state packets to the INPUT rule. I am not sure it is needed for udp but the config is there and it is working so I will mention it.
iptables -I INPUT -p udp -m conntrack --ctstate NEW -m udp --dport 50100 -j ACCEPT
iptables -I INPUT -p udp -m conntrack --ctstate NEW -m udp --dport 19364 -j ACCEPT
Note the port 50100 is the one I told the game to use and the port 19364 is the one the game talks to the game servers on.... so now it is all sweet.iptables -I INPUT -p udp -m conntrack --ctstate NEW -m udp --dport 19364 -j ACCEPT
I know I should upgrade to a new uPNP thingy but I burnt all my spare cash to get on the Alpha
I hope this helps someone else. It took me a few hours reading to get it sorted.
*** port's and ip's have been changed to protect the innocent.