Skip to content

D-Link routers

D-Link Logo The easiest way to configure a D-Link router would be to Demilitarize (DMZ) the machine you are going to be playing Emperor on. That results in all ports being open for that one computer. As a result, there is virtually no firewall protection for that machine from the router. That shouldn't be a big problem if you don't have a constant internet connection, however, as then the chance of a malicious attack on the machine would be very small. In addition, if a firewall is installed on the same computer, chances are, it can be configured to allow only Emperor MP traffic and not anything else. That way, the machine is still protected by the software, even though it is demilitarized by the router.

To DMZ your computer, you need to first find out its IP address. To do that, follow these steps:

  • Click Start and Run (Windows XP keyboard shortcut: Windows Key+r). In the Open field type in "cmd". Press Enter or click OK.
  • In the command prompt, type "ipconfig /all", and press Enter.
Command Prompt output of the ipconfig script
  • Write down the IP address of the netwrok adapter, through which your computer is connected to the router.
  • Now, fire up your browser, and in the address field type in: "http://192.168.0.1", - which is the default IP address of the router, and should work unless you changed the default settings (in which case, you shouldn't be reading this. Just take a peek at the General solution section, you can probably figure out the rest on your own ;) ).
  • In the log-in popup, type in "admin" in the Username field and leave the password field blank (once again, that is unless you have changed the default settings).
  • Once you see the menus, click the "Advanced" tab.
  • Click the DMZ button
  • Make sure that the IP address of the machine you want to use to play Emperor (the one you wrote down earlier) is entered in the IP Address field, and that the Enabled radio button is selected.
  • Click Apply; click Continue.
  • Your computer is now ready for Emperor MP. Note, however, that if DHCP is enabled by the router (which it is by default), the IP address of your machine might change. If that happens, it will not be DMZ'ed any more. So, if after some reboot of your machine, Emperor ceases to work, check if your machine is still DMZ'ed, by repeating the steps above.

Alternatively, one could only forward the specific ports needed for Emperor multiplayer only. This approach is much more secure than DMZ'ing the machine, as it does not open all ports, but only the ones you specify.

  • Follow the same steps as in the previous example to find out the IP address of the machine you are going to be using to play Emperor, and to connect to the router's graphical setup interface.
  • Click the "Advanced" tab.
  • Click the Virtual Server button.
  • Next, you will add several rules. Keep in mind, that for all of them, you will need to select the "Enabled" radio button, and the "Always" radio button under schedule.
  • The rest of the information should be as follows:
    Name Private IP Protocol type Private Port Public Port
    Emperor matchmaking The IP of your machine TCP 25332 25332
    Emperor gameplay The IP of your machine TCP 25333 25333
    Emperor matchmaking The IP of your machine UDP 25332 25332
    Emperor gameplay The IP of your machine UDP 25333 25333
  • After you add each of the rules, click Apply, and Continue.
  • Once you have entered all four rules, Emperor should be ready for multiplayer.
  • Note that if DHCP is enabled by the router, the IP address of your machine might change. If that happens, the settings will no longer be valid. So, if after some reboot of your computer, Emperor ceases to work, check that the settings are still correct by verifying that the IP addresses on the "Virtual Server" page are still valid.

Back to the main page.