python traceroute

William Ray Wing wrw at
Wed Jan 21 15:41:19 CET 2015

> On Jan 21, 2015, at 12:06 AM, Denis McMahon <denismfmcmahon at> wrote:
> On Tue, 20 Jan 2015 19:37:26 -0800, Chandrakant Tiwari wrote:
>> in the program below i want it to make it work  the same way as TRACERT 
>> command.
> As an observation, you're re-inventing a wheel that already works 
> perfectly well, in that any failings of tracert tend to be more down to 
> the way routers are configured to handle icmp than the tracert 
> application itself. Unless you're doing this purely as an exercise in 
> socket programming with python, it might be better to find a new problem 
> to solve.
> -- 
> Denis McMahon, denismfmcmahon at
> -- 

I’d further add that as a security measure these days, many (soon to be most) hosts are configured to throw icmp packets away without acknowledging them in any way.


More information about the Python-list mailing list