|
Answer» I have this PING batch file.
ping 168.94.171.219 > nul IF ERRORLEVEL 1 GOTO offline IF ERRORLEVEL 0 GOTO online
:offline ECHO offline GOTO end
:online ECHO online GOTO end
:end ECHO Goodbye
However the result that I got is only
C:\Documents and Settings\admin\Desktop>ping 168.94.171.219 1>nul and cursor blinking below it.
What did I do wrong?what is your connection speed? do you have a firewall blocking ping? it works for meThe firewall if off and the connection is DSL.ping -n 1 168.94.171.219 IF ERRORLEVEL 1 ( GOTO offline ) else ( GOTO online )I expect Best Buy doesn't respond to ping requests. Choose somewhere else like www.google.com or www.bbc.co.uk
1. ping from my computer
Quote C:\>ping 168.94.171.219
Pinging 168.94.171.219 with 32 bytes of data:
Request timed out. Request timed out. Request timed out. Request timed out.
Ping statistics for 168.94.171.219: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss) .
2. tracert from my computer (Bristol, England, UK). Gets to ge-3-1.hsa2.Minneapolis1.Level3.net and that's all.
QuoteC:\>tracert 168.94.171.219
Tracing route to 168.94.171.219 over a maximum of 30 hops
1 15 MS 9 ms 7 ms 10.9.192.1 2 10 ms 8 ms 8 ms 62.30.64.35 3 9 ms 8 ms 9 ms aztw-t3core-1b-ge-010-0.network.virginmedia.net [80.1.240.129] 4 11 ms 10 ms 9 ms bir-bb-b-so-110-0.network.virginmedia.net [213.105.175.161] 5 15 ms 13 ms 13 ms man-bb-a-so-230-0.network.virginmedia.net [62.252.192.85] 6 20 ms 17 ms 15 ms 212.187.136.125 7 28 ms 18 ms 17 ms ae-4-4.ebr1.London1.Level3.net [4.69.133.102] 8 28 ms 35 ms 17 ms ae-1-100.ebr2.London1.Level3.net [4.69.132.118] 9 93 ms 90 ms 89 ms ae-44.ebr1.NewYork1.Level3.net [4.69.137.78] 10 92 ms 87 ms 89 ms ae-91-91.csw4.NewYork1.Level3.net [4.69.134.78] 11 85 ms 90 ms 89 ms ae-92-92.ebr2.NewYork1.Level3.net [4.69.134.93] 12 110 ms 108 ms 109 ms ae-2.ebr1.Chicago1.Level3.net [4.69.132.65] 13 106 ms 105 ms 106 ms ae-1-51.bbr1.Chicago1.Level3.net [4.68.101.1] 14 118 ms 116 ms 115 ms so-3-0-0.mpls2.Minneapolis1.Level3.net [64.159.4.214] 15 118 ms 115 ms 115 ms ge-3-1.hsa2.Minneapolis1.Level3.net [4.68.112.6] 16 * * * Request timed out. 17 * * * Request timed out. 18 * * * Request timed out. 19 * * * Request timed out. 20 * * * Request timed out. 21 * * * Request timed out. 22 * * * Request timed out. 23 * * * Request timed out. 24 * * * Request timed out. 25 * * * Request timed out. 26 * * * Request timed out. 27 * * * Request timed out. 28 * * * Request timed out. 29 * * * Request timed out. 30 * * * Request timed out.
Trace complete. 3. www.who.is says:
QuoteOrgName: Best Buy Co., Inc. OrgID: BBC-19 Address: 7601 Penn Avenue South Address: NONE City: Richfield StateProv: MN PostalCode: 55423-3645 Country: US
NetRange: 168.94.0.0 - 168.94.255.255 CIDR: 168.94.0.0/16 NetName: BESTBUY NetHandle: NET-168-94-0-0-1 Parent: NET-168-0-0-0-0 NetType: Direct Assignment NameServer: DBRU.BR.NS.ELS-GMS.ATT.NET NameServer: DMTU.MT.NS.ELS-GMS.ATT.NET Comment: RegDate: 1994-03-01 Updated: 2006-04-17
RTechHandle: DA27-ORG-ARIN RTechName: Domain Administrative Contact RTechPhone: +1-612-291-1000 RTechEmail:
OrgTechHandle: KLS26-ARIN OrgTechName: Seamans, Kevin Lee OrgTechPhone: +1-612-291-1000 OrgTechEmail: Most companies block ICMP packet to prevent PEOPLE from discovering devices on thier network
|