Click here to Skip to main content
13,593,266 members
Click here to Skip to main content
Articles » Languages » VB.NET » General » Alternatives
Add your own
alternative version


12 bookmarked
Posted 4 Jan 2010
Licenced CPOL

Checking Internet Is Connected Or Not From .NET

, 16 May 2011
For C# guys....using System ;using System.Runtime ;using System.Runtime.InteropServices ;public class Internet{ [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; public static bool...


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

25 Dec 2011
Gandhi Ashish
2 alternatives  
Checking Internet Is Connected Or Not From .NET
27 May 2011
Anshul R
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

J a a n s
Software Developer (Senior)
India India
No Biography provided

| | Privacy | Cookies | Terms of Use | Mobile
Web02-2016 | 2.8.180618.1 | Last Updated 16 May 2011
Article Copyright 2010 by J a a n s
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid