Here you have a ping example for VB.NET
Dim host As String = "82.123.23.XX" ' use any other machine name Dim pingreq As Ping = New Ping() Dim rep As PingReply = pingreq.Send(host ) Console.WriteLine("Pinging {0} [{1}]", host , rep.Address.ToString()) Console.WriteLine("Reply From {0} : time={1} TTL={2}", rep.Address.ToString(), rep.RoundtripTime, rep.Options.Ttl)
You will need to import
System.Net.NetworkInformation
source share