ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
276 stars 45 forks source link

Can only receive the last hop using traceroute on Windows #65

Closed CarlGao4 closed 1 year ago

CarlGao4 commented 1 year ago

As the pictures described:

Windows 11: image

WSL (Archlinux) on Windows 11: image

ValentinBELYN commented 1 year ago

Hi 👋

The behavior you are seeing on Windows is most likely related to your firewall. Can you try to deactivate it during the test and try again? There are other issues on this subject (#7, #8 and #10).

CarlGao4 commented 1 year ago

I've allowed all connections of python.exe but it is still like this. It's interesting that the problem is solved when the firewall (Windows Defender Firewall) has been disabled totally but only allowing python.exe can't. I also suggest you to add this instruction to your README, or the programs using your library may not be able to function.

ValentinBELYN commented 1 year ago

I think you can make exceptions for the ICMP protocol on your firewall, which will save you from disabling it completely.

Otherwise, as soon as I have a little more time, I will try to add an FAQ or a space with frequently encountered problems.