If you are connected to the internet throu a router, you have to set up NAT and forward Warzone's Port to the local Network Address of your Pc.
1. Getting the needed information
At 1st, we need the local IP address and the IP address of the router that connects your pc to the Internet
Linux & MacOS X:
Type 'ifconfig', the output should look something like this:
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:0F:20:CF:8B:42 inet addr:192.168.1.100 Bcast:192.168.0.255 Mask:255.255.255.0 [...]
To get your routers ip you have to enter the command 'route -n':
Code: Select all
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ra0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ra0
On Windows its a bit easier because the command 'cmd /k ipconfig /all' shows you both addresses in a single output. Look for the active network adapter and get the addresses from the 'IP Address' and 'Local Gateway' Lines.
2. Connecting to your Router
Most routers use a web interface for admninistration, some of them require a cable connection for that purpose.
Open a Browser and connect to http://the-router-ip:port
Because there are many different vendors, you maybe have to fiddle around which port is used for the web interface, in general.. its mostly the standart www port (80), after that you should try 8080 and if that doesent work, check your routers manual.
3. Configuring Port forwarding
When youre logged in to the routers Web Interface (User/Pass should be known, or at least in the manual), search for a option NAT, Port Forwarding or Port Re-direction.
There you can set Port-forwarding Options, for warzone the external and internal port must be '2100', the ip address you forward to is the local ip of your pc where you plan to host warzone games.
After you've set up and saved it, the router should be restarted, that can be done from the admin menu of your router.
Visit http://www.yougetsignal.com/tools/open-ports/ and type in the Warzone Port (2100). The Website connects to the external IP on the given Port and tells you if its either closed (bad!) open but filtered (good) or open (very good ,and most likely your hosting a game right now).
If you have set up NAT and still cant host games, a blocking firewall could be the problem.
Click Start -> Control Panel -> Windows Security Center -> Windows Firewall
Click on exceptions and add Warzones port. (2100)
(The pic is from WinXP and the Win7 firewall looks a bit different but basically its the same procedure)
Other Windows Firewalls:
Most firewalls ask for permission to allow or block a application after it tries to connect/get connected. If you dont find the exceptions dialog for your product, look into the manual or contact the support.
Most linux distributions dont come with a 'personal firewall' because the linux system (mostly) doesent have open ports when freshly installed. To see if the warzone port on your machine is open, enter this command after opening the game:
sudo netstat -tulpen | grep -v '127.0.0.1'
If its blocked you should check for running firewalls and set rules accordingly.
If you use DHCP to connect to the router be warned that your local IP might change when the lease expires. Then you have to change the Routers Options again. To fix that, you can set a ip manually and route the port to your machine.
Hope that Guide helps some of you to set up own muliplayer games, if you have problems configuring your router try to search google with "router name +portforwarding guide". If you need more help, feel free to ask in this topic.