Click here to Skip to main content
13,189,531 members (41,201 online)
Click here to Skip to main content
Articles » Languages » VB.NET » General » Alternatives
Add your own
alternative version

Stats

12.7K views
12 bookmarked
Posted 4 Jan 2010

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

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
Web01 | 2.8.171016.2 | Last Updated 16 May 2011
Article Copyright 2010 by J a a n s
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid