How to ping In vb.net

By Super Man
INSTANTLY dtSearch TERABYTES OF POPULAR DATA TYPES; hundreds of reviews, etc.!

here i will show how you can ping another computer in Vb.net

here is the code for ping command.

You can pass Ip or address to argument of Ping function:

If host is available and successfully pings the it show messsge Pinging Successful else Host is not available
and if host is not found, then it will throws an exception.

             Dim RESPONSE As Boolean = My.Computer.Network.Ping("www.eggheadcafe.com")
            If RESPONSE = True Then
                 MsgBox("Pinging Successful")
            Else
                 MsgBox("Host is not available ")
            End If

How to ping In vb.net  (893 Views)