Arctor Posted July 13, 2004 Share Posted July 13, 2004 cowsmanaut:tracert -h 2 www.hiddensoft.comMaybe it depends on the router but I don't believe. All routers I work with don't give their assigned IP back to a tracert.The 1st you get is the local adress of the router and the 2nd hop you get is normaly a Gateway IP at your ISP.Did you really test the 2nd IP you get on a tracert with the IP that is assigned to your connect with your ISP? I ask because it's really interesting for me when it works at your place and not at mine.arctor Link to comment Share on other sites More sharing options...
Nutster Posted July 13, 2004 Share Posted July 13, 2004 My first address is the inside address of the firewall/router and the second address is that of our ISP, not the external address of the firewall. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
cowsmanaut Posted July 14, 2004 Share Posted July 14, 2004 hmm.. interesting. I guess I should have checked that .. I had simply assumed since on a setting of 4 hops I got the routers local ip 192.168.0.1 and then I got annother IP (I assumed the outside IP of the router) and then got my ISP first address then it's second.. then from there it goes outside to the location etc.. so now I wonder.. what is between me and the outside? Link to comment Share on other sites More sharing options...
Nutster Posted July 14, 2004 Share Posted July 14, 2004 Different firewall manufacturers may or may not give the external address as a hop. Check the numbers from tracert against the result from whatismyip.com. Watchguard does not do that. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
pekster Posted July 14, 2004 Share Posted July 14, 2004 It all depends on your hardware, and your local configuration. You can have local gateways that would mess this up as well. You can't always be sure you can even get your outside IP, and if you can, it won't be the same number of hops for all clients on a traceroute. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
Westi Posted July 24, 2004 Share Posted July 24, 2004 (edited) Hi, i think i have a very useful solution. My DSL modem uses IP-masquerading and it's very complicated to get the IP address, so i wrote this script. The script use an url from the ini file and get the IP address. If a site is unavailable the script use the next url. Some checks are done. MyIP.au3 expandcollapse popupAutoItSetOption("TrayIconHide", 1) $INI = @ScriptDir & "\myip.ini" ;check for .ini If FileExists($INI) = 0 Then Error($INI & " not found. EXIT!") $POS = 0 $IP = 0 $URLS = IniRead($INI, "URL", "URLS", "") ;delete forgotten tempfiles For $I = 1 To $URLS FileDelete(@ScriptDir & "\" & $POS + 1 & ".htm") Next While $POS < $URLS FileDelete(@ScriptDir & "\" & $POS - 1 & ".htm") $POS = $POS + 1 $IPTMP = @ScriptDir & "\" & $POS & ".htm" $URL = IniRead($INI, "URL", $POS, "") $IP = URLDownloadToFile("http://" & $URL & "/ip.php", $IPTMP) $FS = FileGetSize($IPTMP) If FileExists ($IPTMP) = 0 Then ContinueLoop If $FS > 16 Then ContinueLoop Else If $FS < 8 then ContinueLoop EndIf If $FS <= 16 then ExitLoop Wend If $POS >= $URLS then Error("NO URL AVAILABLE." & @CR & "ARE YOU OFFLINE!? EXIT!") $FILE = FileOpen($IPTMP, 0) If $FILE = -1 Then Error("Unable to open " & $URL) $LINE = FileReadLine($FILE) ;check the result $LINE1 = StringReplace($LINE, ".", "") If StringIsDigit($LINE1) Then ;do something with the output ;ClipPut($LINE) ;WinSetTitle ( "FRITZ!web DSL", "", $line ) MsgBox(0, "IP Address:", $LINE) Else ;show the error in default browser instead of IE RunWait(@ComSpec & " /c start " & $IPTMP, "", @SW_HIDE) Sleep(1000) EndIf FileClose($FILE) FileDelete($IPTMP) Exit Func Error($TXT) MsgBox(48, "Error", $TXT) Exit EndFunc ;==>Error MyIP.ini 1=dynupdate.no-ip.com 2=ressourcen.snooweatinganima.de 3=www.bp ftpserver.com 4=www.minasithil.org 5=dasdeck.de/staff/valentin/tools 6=julien.games-fed.com 7=www.dorm.org/~dorm 8=www.ois.uic.edu/pubtools 9=www.espresso.iki.fi/pub/php 10=www.vtcz.ch 11=pmh.compunet.hu/tenzor 12=www.spunge.org/~oblivion 13=Dev.trag.nl 14=naholyr.free.fr 15=mgt.heinrich.free.fr 16=www.liero-masters.host.sk 17=www.zoo-gate.fi 18=filezilla.sourceforge.net/misc/ 19=cipres.cec.uchile.cl/~hvergara 20=www.nicoland.de/scripts URLS=20To speed up the function, sort the urls corresponding to your language/home. If someone have improvements, let's go... but i think it's perfect EDIT: shrinked Edited July 24, 2004 by Westi Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now