traceroute traces the route taken by packets over a TCP/IP network. It is used as a network debugging tool to show where packets are being lost along the route.
Questions tagged [traceroute]
268 questions
33
votes
7 answers
TraceRoute and Ping in C#
Does anyone have C# code handy for doing a ping and traceroute to a target computer? I am looking for a pure code solution, not what I'm doing now, which is invoking the ping.exe and tracert.exe program and parsing the output. I would like…
NET789
28
votes
3 answers
Is is possible to make a cURL request and get the route that is taken (similar to traceroute)
I have a GET request with header params and I want to check which db instance my app is using. Is there a way I could build a cURL request that would tell me where my request is going? I know there is a traceroute command which displays all the…

DanielD
- 1,315
- 4
- 17
- 25
22
votes
8 answers
Is it possible to do a traceroute in the browser?
I'm looking for a way to do a traceroute client-side, i.e. in a browser.
As far as I know, it's not possible to send ICMP, UDP or TCP packets with arbitrary TTL values via Javascript or Flash. I know Flash allows TCP connections via the Socket class…

Franck
- 6,285
- 5
- 26
- 35
21
votes
5 answers
tracert command returns timed out
tracert returns requested time out. What I understand from this is the packets lost some where on the network.
Does it mean the issue is with the ISP or with the hosting provider or my windows system?
10 * * * Request timed…

Raghav
- 6,893
- 3
- 19
- 28
20
votes
5 answers
What do the numbers reported by the Windows TraceRt Mean
I need to create a trace route as part of a .NET appliation to support trouble shooting. I have figured out how to use the .NET Ping class to do the tracing. What I do not understand is what the numbers reported by the command line utility are. …

JonStonecash
- 1,352
- 2
- 10
- 17
20
votes
2 answers
How does traceroute work?
It seems almost magical. What is the traceroute command doing in order to map out the entire path to some other node on the Internet?

raldi
- 21,344
- 33
- 76
- 86
19
votes
1 answer
Why traceroute sends UDP packets and not ICMP ones?
According to the Stevens (TCP/IP Illustrated) the traceroute program sends UDP packets to the destination host with an incremental TTL (1, 2, 3, etc) to get the intermediate hops info from the ICMP TTL EXPIRED messages.
The "destination reached"…

sergico
- 2,595
- 2
- 29
- 40
18
votes
1 answer
Telling a story with traceroute: how does it work?
If you do a traceroute on bad.horse you get this amazing result:
⚘ traceroute bad.horse …

Wayne Werner
- 49,299
- 29
- 200
- 290
18
votes
2 answers
How is it possible for traceroute to timeout, yet the site will load fine in a browser?
I am able to load www.cnn.com in Chrome, yet when I do a traceroute from the command line (OSX), it times out at level3.net
I used this Chrome extension to verify the IP that Chrome is using for www.cnn.com
(I can't find a way with Chrome debugger…

jpeskin
- 2,801
- 4
- 28
- 27
14
votes
4 answers
Is there a PowerShell equivalent tracert that works in version 2?
I'm using PSVersion 2.0 and I was wondering is there a equivalent to the traceroute for it?
I'm aware that on PowerShell v4 there is Test-NetConnection cmdlet to do tracert but v2?! It can be done like:
Test-NetConnection "IPaddress/HOSTaname"…

Sylca
- 2,523
- 4
- 31
- 51
13
votes
5 answers
Tracert on Windows Returns Slower than on Linux
I have two computers, one Windows and one Linux sitting side by side on my desk, both connecting to the same internet. If I run a tracert on www.stackoverflow.com and traceroute www.stackoverflow.com, both return the same data. However, tracert on…

KingFish
- 8,773
- 12
- 53
- 81
11
votes
1 answer
OSX equivalent for IP_RECVERR
I'm trying to port a TraceRoute program from Linux to OSX, and i'm having trouble finding the IP_RECVERR equivalent.
The way most people do the packet parsing is:
setsockopt (sock, IPPROTO_IPV4, IP_RECVERR, &on, sizeof (on))
And then when the…

kmdent
- 1,577
- 16
- 32
10
votes
5 answers
Script to start traceroute if continuous ping fails, output to log
I want to continuously ping my home public IP address, and if the ping fails automatically do a traceroute to see where it's failing.
I've been trying to follow the comments made…

lysdexic
- 363
- 1
- 3
- 14
10
votes
1 answer
TCP Traceroute in python
I am writing a python script to perform 'TCP Traceroute'. I learned scapy is a useful library to do this but I`m not getting the results I need. Can anyone help me resolve this? I want the python script to generate similar results as command…

Hussain ali
- 491
- 3
- 7
- 21
10
votes
7 answers
How can I perform a ping or traceroute using native python?
I would like to be able to perform a ping and traceroute from within Python without having to execute the corresponding shell commands so I'd prefer a native python solution.

Dave Forgac
- 3,146
- 7
- 39
- 54