Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having PROBLEMS with PING. GOT errors

Status
Not open for further replies.

JuanjoZun

Programmer
Jul 20, 2002
82
MX
I'm Using ASPPING.Conn, I want to know if a computer is online or not... but when I use this:

Set Pinger = Server.CreateObject("Aspping.Conn")
Pinger.RemoteHost = "172.30.26.11"
Pinger.PingCount = 2
OnorNot = Pinger.ping
Response.Write &quot;Resultado:<br/>&quot; & Pinger.Ping
Set Pinger = nothing

It works ok, no problem. but then I wrote,
If Len(OnOrNot)>0 then
stat....
....


Suddenly I Experimented problems, pulling data from anothers computers on my network, my pages didn't work fine... so, I needed to restart my computer...

... I don't know what is the problem... but any Ideas would be useful for me... now, If you have a better Idea to KNOW when a computer in the network is online or not, you know, if the Netwrok cable is plug in, or sometimes the computer is shut off...
please tell me... I need to know if is online, so i can pull data from it...


Follow the dark side, so you can reach the light.
 
Hmm...I tried duplicating this error, but it continues to work fine even whern I have a length check in it.

If you go back to just Response.Write'ing a ping does it show the text from the ping or do you just get blank results?

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
mmmmm.... I don't know, maybe it's a win problem or with the DLL... I don't know I have Winxp in all computers in my network.... do you know how to unistall this DLL the ASPPing? I downloaded a new one... NetDLL. I Hope It works.... don't worry and let me try this DLL

Thanx

Juanjo

Follow the dark side, so you can reach the light.
 
You can probably just use regsvr32 –u aspping.dll to unregister the component. I haven't played with it much, but I run 2000 so that may be the issue (IIS5 vs IIS5.1)

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top