If you use iptables , ufw , or another firewall:

Windows Firewall often blocks the specific traffic needed for direct tunneling.

Suddenly, your game lags, your file transfer crawls, and your VoIP call sounds like a robot dying of a cold. Why does this happen, and more importantly, how do you force a direct tunnel?

Forcing Hamachi to use specific ports prevents port conflicts and makes port forwarding predictable. Open Hamachi and go to > Preferences . Click on the Settings tab and select Advanced Settings . Scroll down to the Peer Connections section. Locate Static UDP Listening Port and set the value to 4171 . Locate Static TCP Listening Port and set the value to 4171 . Click Set , then click OK .

Restart the Hamachi services on your device:

If you use LogMeIn Hamachi to play LAN-restricted multiplayer games, host dedicated servers, or share files, you have likely encountered the dreaded "Relayed Tunnel" error. Instead of your data traveling directly between your computer and your friend's computer, a relayed connection means your data is being bounced through a third-party server. This translates to high latency, severe lag spikes, packet loss, and an overall degraded experience.

: Open services.msc , right-click LogMeIn Hamachi Tunneling Engine , and select Restart .

Wait a few seconds for the process to stop and start again, then re-open Hamachi. Step 3: Check Network Adapter Priority

If a firewall exception doesn't work, your router likely doesn't support "NAT traversal" automatically. You’ll need to tell Hamachi exactly which ports to use

The most permanent fix for a relayed tunnel is enabling Universal Plug and Play (UPnP) on your internet router. This allows Hamachi to automatically open the ports it needs.

To help pinpoint the exact cause of your connection issue, please share a few more details:

Good luck, and enjoy your direct, low-latency Hamachi connections!

A (indicated by a blue dot) occurs when Hamachi cannot establish a peer-to-peer connection and must route traffic through its own servers, causing high latency. A direct tunnel (green dot) is the goal for optimal performance. 🛠️ Quick Fixes

Computers talk directly to each other. This is the ideal state for gaming and file sharing.

Often, Windows Firewall treats Hamachi’s direct connection attempts as suspicious. You need to explicitly allow the Hamachi engine. Close Hamachi completely.

Open the and navigate to System and Security > Windows Defender Firewall .

Subscribe to our weekly newsletter.