I downloaded the VB 2005 express edition and went right to work checking out the MY namespace for networks.
The My.Computer.Network.IsAvailable
returns an expected true, so hooking up to the newtork I went about making an applet to ping machines on my network.
All appeared to be OK, I can ping with network AND machine up and connected, it seems to work fine. Disconnect the network, still fine. BUT shutting off the target machine STILL doesn't generate any error.
Heres the code from MSDN:
If My.Computer.Network.Ping("198.01.01.01") Then
MsgBox("Server pinged successfully.")
Else
MsgBox("Ping request timed out.")
End If
I presume that the method is determining that a return did occur.
When I PING from the command line, I get the correct "Request Timed Out"
response. I think their method has a bug. Has anyone else used this method with success?
Regards,
Gary
The My.Computer.Network.IsAvailable
returns an expected true, so hooking up to the newtork I went about making an applet to ping machines on my network.
All appeared to be OK, I can ping with network AND machine up and connected, it seems to work fine. Disconnect the network, still fine. BUT shutting off the target machine STILL doesn't generate any error.
Heres the code from MSDN:
If My.Computer.Network.Ping("198.01.01.01") Then
MsgBox("Server pinged successfully.")
Else
MsgBox("Ping request timed out.")
End If
I presume that the method is determining that a return did occur.
When I PING from the command line, I get the correct "Request Timed Out"
response. I think their method has a bug. Has anyone else used this method with success?
Regards,
Gary