Click here to Skip to main content
12,693,601 members (29,885 online)
Click here to Skip to main content
Articles » Languages » VB.NET » General » Alternatives
Add your own
alternative version

Stats

11.6K views
12 bookmarked
Posted

Checking Internet Is Connected Or Not From .NET

, 16 May 2011 CPOL
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...

Alternatives

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 -...

License

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

Share

About the Author

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

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