Tag Archives: web

Ping a Specified Url/Web Address using VB.NET 2005 and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 

Thi shows how to ping a url or web address using Visual Basic 2005, VB 2008, and VB 2010. It uses the MY feature that was included with .NET 2.0 and higher.

 

'
'Ping a url that is specified in the parameter.
MsgBox(My.Computer.Network.Ping("www.vbcodesource.com").ToString)