A simple:
Dim txt As String = Now + " - " + txtIPaddress.Text + " - "
If My.Computer.Network.Ping(txtIPaddress.Text) Then
Debug.Print(txt + "success")
Else
Debug.Print(txt + "no reply")
End If
If My.Computer.Network.Ping(txtIPaddress.Text) Then
Debug.Print(txt + "success")
Else
Debug.Print(txt + "no reply")
End If
Dim txt As String = Now + " - " + txtIPaddress.Text + " - "
Dim zz As System.Net.NetworkInformation.PingReply
Dim xx As New System.Net.NetworkInformation.Ping
zz = xx.Send(txtIPaddress.Text)
Debug.Print(zz.Status.ToString)
No comments:
Post a Comment