Collating all the posts on how to setup a router for hosting as well as other bits.
Assumptions:
Local Subnet: 192.168.0.x
if your router uses a different subnet e.g. 192.168.1.x or 10.0.0.x replace the first three octets in the examples below.
Router IP: 192.168.0.1
Client/IL2 PC: 192.168.0.2
Steps:
- Setup a static IP for your flying PC
- Set Port 21000 (Port forwarding) to your Static IP
Step 1) To setup a Static IP address
Most routers will have DHCP set as default, so when you plug a device into it, it sends out an IP address to that device.
To get port forwarding to work, you need a static IP to send the packets to.
You need to look at your network connections on your PC.
Windows Start Menu -> Control Panel -> Network Connections
This should show you the Local Area Connection in the list of connections.
Right click the Local Area connection and select Properties.
This will open the Connection Properties dialog box. In the dropdown list, select Internet Protocl TCP/IP. Highlight it and click properties.
You should be presented with a window that has two radio buttons one that says “Obtain IP address Automatically”.
You want to put the first to “Use the following IP Address”. (This will also change the second one below it)
Enter the following under the first set of boxes:
IP Address: 192.168.0.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
Enter the following under the second set:
Preferred DNS Server: 192.168.0.1
Then click ok.
Your PC should now have a static IP of 192.168.0.2
Step 2) Set Port 21000 (Port forwarding) to your Static IP
Different Routers have different ways to do this. Some you just have to setup Port Forwarding, others you have to set a specific service for the firewall to do this.
Go Here and see if your router is listed.
Select your router, then IL2 in the apps list and follow the instructions. Use the IP address you used in Step 1) above.
Download UDP Test Tool
You can test Port forwarding is working by putting your WAN/Internet IP in the remote IP address, with Port 21000. Bind your local IP 192.168.0.1 and Port 21000 and click send.