Hamachi:Set static port for incoming traffic
From LogMeInWiki
In some circumstances, you may need to set a static TCP or UDP port for Hamachi to use when accepting connections. This is most commonly needed when you have a computer behind a router/NAT that doesn't support NAT, or its support of NAT is flaky. In this case, you'd need to set up a static port forward on the router/NAT, and then fix a static port in Hamachi.
Contents |
Windows
Port Forward
Every device is different, but very detailed info per device can be found on http://portforward.com for setting them up. If you are setting up port forwards, it is easiest to set them up for both TCP and UDP protocols, and to keep them the same number.
Hamachi configuration
Open Hamachi:Preferences: Status and go to Hamachi:Detailed Configuration. Check the boxes for TCP and UDP port, and enter the port values you set up in your port forward settings of the router/NAT. Restart Hamachi.
Note that UDP port is all you need to configure for peer to peer connectivity. TCP port only controls the port used to receive traffic from the mediation server.
Notes
Formerly known as the "Magic option"
Linux and OSX
Port Forward
Every device is different, but very detailed info per device can be found on http://portforward.com for setting them up. If you are setting up port forwards, it is easiest to set them up for both TCP and UDP protocols, and to keep them the same number.
Hamachi configuration
Add the following line(s) into the file you need to create called ~/.hamachi/config
UdpPort ####
where #### is the port you are forwarding to the machine from your router.
Restart Hamachi (hamachi stop; hamachi start)
Note: This article was written for the Hamachi 1.x version. Some features and functionality may be different, missing, or using different steps in Hamachi version 2.x . If you wish to update this article to cover Hamachi2, change the {{{c-hamachi}}} tag to {{{c-hamachi2}}} after your edits.