How To Detect My Router’s Public IP Address From Inside My Own Network
BoLaFish
10:56 pm on December 24, 2009
Is it not possible to do a trace-route (ping basically with a hop count of just 1). This should return the IP Address of the first wouter that it passes through. Should be easy to do in Java or C#.
BoLaFish 10:56 pm on December 24, 2009
Is it not possible to do a trace-route (ping basically with a hop count of just 1). This should return the IP Address of the first wouter that it passes through. Should be easy to do in Java or C#.
This is from DOS..
D:\Documents and Settings\Vikram>ping -r 1 http://www.yahoo.com
Pinging http://www.yahoo.akadns.net [66.94.230.42] with 32 bytes of data:
Reply from 66.94.230.42: bytes=32 time=281ms TTL=47
Route: 203.145.184.1
The “Route” is the id of my external router in this case..
Try to do this programatically..