Questions tagged [traceroute]

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.

268 questions
1
vote
4 answers

Batch: Retrieve IP/host from tracert

Im trying to make a script which runs a tracert, and then performs a ping on every hop. Currently, the tracert troubles me, due to the fact that the variables changes all depending if the host is reachable or not. A tracert performs a hop count, 3…
Saku
  • 47
  • 6
1
vote
1 answer

traceroute multiple hos python. (reading .txt line by line)

I know this script was discussed here before, but I still can't run it properly. Problem is reading text file line by line. In older script while host: print host was used, but using this method program crashed, so I decided to change it to…
Tomas
  • 13
  • 2
1
vote
2 answers

Traceroute : why my packets travel around the world?

I'm actually in Vietnam, and when I run traceroute to check path between me and my server in France, my packets seem to like travel all around the world, instead of going straight to France. Here is the path : local router Saigon (Vietnam) Hong…
1
vote
1 answer

Android traceroute, ping, dnslookup

I want to implement traceroute/ping/dns lookup in the my application. For ping i use a ProcessBuilder: ProcessBuilder processBuilder = new ProcessBuilder("ping", "-c 1", host); Process process = processBuilder.start(); But how can i use a…
Yuriy Aizenberg
  • 373
  • 9
  • 28
1
vote
1 answer

call tracert and ping from sql and put the result in sql table

I need to create a stored procedure which will get destination IP and then call tracert or ping and then write the result into a sql table so then I can show user the result in a web page . is it possible to do this ? if yes would you please tell…
Asha
  • 3,871
  • 7
  • 44
  • 57
1
vote
2 answers

Why is my TTL value increasing by 2 each time? (C Socket programming)

i'm trying to implement a Traceroute program but i've ran into two problems, one is that the TTL and RTT print out wrong; though they printed out right when implemented as a ping program. Finally my main issue is that when i'm incrementing the TTL…
A CSc Student----
  • 97
  • 1
  • 2
  • 10
1
vote
0 answers

php popen traceroute doesn't always return

I have to proceed to a lot of traceroutes as quickly as possible with PHP on Windows. Here's my code : function tracert($addresses){ set_time_limit(300); $nbAddresses=count($addresses); for($i=0; $i<$nbAddresses; $i++){ …
1
vote
0 answers

Network tools, functional programming style

I'm gonna be honest here: when it comes to functional programming, I never went further than reading about it or solving simple problems. Despite loving the idea of concise, easy-to-maintain source code, I never found a reason to use the paradigm.…
bruno nery
  • 2,022
  • 2
  • 20
  • 31
1
vote
1 answer

Read ICMP payload from a recvmsg with MSG_ERRQUEUE flag

I'm using BSD sockets to build an advanced traceroute program that doesn't need root privileges (like tracepath). Using UDP and a bound socket, I call: recvmsg(socket, header, MSG_ERRQUEUE) I receive info about the supposed ICMP notification that…
Eons
  • 19
  • 1
  • 2
1
vote
2 answers

traceroute multiple hosts in python

I'm writing a script to do traceroute for a list of hostnames. what I'm trying to do is reading hostname from a text file, line by line, performing tracert for each host using subprocess and writing the result in another file. here is my code #…
1
vote
4 answers

Parsing data from traceroute command

I am trying to parse the "number of hops" value from the traceroute command and output it with a bash script. Any hints? Very new so thanks. My script looks like this so far: #!/bin/bash #parse traceroute for hops and output to stdout. echo -n…
Ron
1
vote
3 answers

hide command usage argument on browser of shell_exec PHP in windows

I make the traceroute web based. I use shell_exec to execute the process and show the output via browser. I have problem with the first I call the page on browser. There is usage of tracert command show. I try to hide it by place the script inside…
chumyee
  • 91
  • 1
  • 3
  • 12
1
vote
0 answers

cannot display multiple markers in google maps v3 from traceroute result

i'm newbie in php mysql and google maps v3. i have a problems in google maps v3. i made traceroute web based and map the traceroute's result in the google maps v3 for my final project of my college education. i have try so many tutorials but it…
chumyee
  • 91
  • 1
  • 3
  • 12
0
votes
1 answer

Justifying a trace route path

Im tracerouting a server in Bolivia. Analysing the route closer i can see that it visits the following locations: 1 xxxxxxxx (xxxxxxx) 1.001 ms 1.628 ms 2.126 ms 2 xxxxxxxx (xxxxxxx) 0.649 ms 0.768 ms 0.757 ms 3 xxxxxxxx (xxxxxx) 2.348…
FredBones
  • 1,355
  • 2
  • 12
  • 17
0
votes
1 answer

Converting a .log file into CSV format

I am performing a number of trace routes to different IP's throughout the course of 1 week. Ive got a script that performs a set of trace routes and writes and appends them to the same .log file. This file is obviously now quite large as I'm…
FredBones
  • 1,355
  • 2
  • 12
  • 17