I'm using Jpcap to run a traceroute program. It works well on Ubuntu but in windows, it keep on showing me the first 2hops.
Anybody know what is going on? here's my code
yeah, i'm the administrator of this computer.
In Ubuntu, it works pretty well.
It shows me all the hops.
I really don't know why it does not works on Windows XP.
I can only let you know what's happening here:
Your request is not able to go outside your PC.
So, it keeps on pinging inside only.
What I can suggest is:
1) Make sure you have connected to correct interface (means to the interface from which packet is going outside).
So, check out for the interfaces first and connect to the correct interface.
2) in your code I am not able to find the server you're pinging/sending packet to (like google, yahoo etc).
See, your program is working. So, there's only a small alteration need to be done. So, carefully analyze each step. You'll get to know.
--Himanshu Jain
http://jainhim.blogspot.com/
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay: