Friday, October 31, 2014

How to trace route ip address to server

Use traceroute 

you can find the track ip address of your computer's connection to server, this command usually used to look for a network that having problems.
in speed, lost bandwidth, etc.


Installation for deb
sudo apt-get install traceroute

to use trace router

traceroute 188.165.247.43
traceroute google.com


traceroute command shows the path to your destination. packets send to will pass through the routers and you receive a response obeying the time to live (TTL) value for each packets. the * denotes a timeout as a response from the intermediate routers that says the packet has expired.
This could be due to various reasons. Either the TTL value is not enough, or could be that a firewall or router is denying the trace packets. In which case you cannot always confirm that the destination server is in fact down. Search google on traceroute command, you will get plenty of resources.


As an alternative to traceroute, you might use mtr

mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool.
As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.

sudo apt-get install mtr-tiny

mtr google.com