Skip to content
MtrXTools

Destination port unreachable.

The target rejected the packet with port unreachable

Seen in Windows ping, Linux ping (Destination Port Unreachable), traceroute

The host or a firewall replied with ICMP port unreachable, which is how many firewalls reject traffic they are told to block.

Common causes

  • An iptables or nftables REJECT rule; its default reply is icmp-port-unreachable, even for ping.
  • A firewall on the path rejects instead of dropping the traffic.
  • With UDP traceroute, the final hop replying "port unreachable" is normal and means the trace reached the target.

How to fix it

  1. Check the target's firewall for a REJECT rule matching ICMP, for example `sudo iptables -S | grep REJECT` or `sudo nft list ruleset`.
  2. Allow ICMP echo requests if ping should work, or test the service port directly.
Test the service port

Got a different message? Paste it into the error explainer.

Related errors

All 19 Network errors