Port forwarding can be tricky since people tend to neglect a very important first step.
The very first thing to do is set your computer up with a static IP. Most people have their network settings set up in such a manner that their IP address is dynamically generated. This is a problem with port forwarding since the router needs to know which IP address to send data to. If your IP is dynamic then it has no idea.
Think of port forwarding as a receptionist in an office. It takes all the incoming mail and looks at which mailbox it was slipped into. "Ahhh... mailbox 413 (ie: the port number) has mail in it. All mail in mailbox 413 goes to John in office 3b (the IP address of your computer)." Of course the system would totally screw up if John kept swapping offices with other people. Our poor receptionist wouldn't know where to send the mail. Port forwarding is the same and setting up a static IP is how we tell John to be happy with the freaking office he has and stay put so we can make sure he gets his mail.
To set up a static IP read through
this guide.
You can choose pretty much any IP you want so long as it adheres to the rules for IP addresses. I tend to base mine on the IP ranges provided by my router but it is up to you.
Once you have done that you need to log in to the webinterface for your router. This is usually an IP Address of some description such as 10.1.1.1
Once you are in there you will see an option in the left hand menu (Well this is the case for most D-Link products) called Portforwarding.
Now all you need to do is start creating rules for port forwarding. Add a new rule and then enter the following details:
The port or range of ports you want to forward.
What type of connection (Generally it is best to choose both UDP and TCP which on Dlink is the Both option)
Don't worry about the Port Map, you don't need it.
Last thing to enter is the IP address you want these ports to forward to and that is going to be the IP you used for your static IP above.
But which ports to forward? Well it varies from game to game, application to application. Many applications with a direct networking focus like the BitTorrent application Azuerus allow you to set which ports the program is going to use.
Good thing for us, Hamachi falls into the above category. Click the gear button the right hand bottom corner and then select preferences.
Once you have done that make sure the System option on the left is selected and look under the troubleshooting section to see a box called the magic number. This is the port number we need to forward. Use that in the port forwarding steps above and voila... you're good to go.
Please note that Dlink routers tend to need a restart after you have added ports to forward.