473,659 Members | 2,920 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting Internet Connection?

How can i detect if a user is connected to a newtork or the internet using
..Net? are there any examples out there?

Any Help or links Greatly Appreciated

TIA

Samantha
Nov 18 '05 #1
3 1491
Not sure what you mean. In an ASP.Net app, a user is a client browser,
which, if it makes a request to your web, is certainly connected to the
Internet, or at least to your network.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Elizabeth Harmon" <EH*****@bloomi ngtonfarms.com> wrote in message
news:OQ******** ******@TK2MSFTN GP09.phx.gbl...
How can i detect if a user is connected to a newtork or the internet using
.Net? are there any examples out there?

Any Help or links Greatly Appreciated

TIA

Samantha

Nov 18 '05 #2
There are several properties in the System.Net.Sock ets Namespace that might
help with this. Here's a place to start:

TcpClient.Activ e Property

http://msdn.microsoft.com/library/de...ctivetopic.asp

"Elizabeth Harmon" <EH*****@bloomi ngtonfarms.com> wrote in message
news:OQ******** ******@TK2MSFTN GP09.phx.gbl...
How can i detect if a user is connected to a newtork or the internet using
.Net? are there any examples out there?

Any Help or links Greatly Appreciated

TIA

Samantha

Nov 18 '05 #3
Thanks that is what i was looking for
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:On******** ******@TK2MSFTN GP12.phx.gbl...
There are several properties in the System.Net.Sock ets Namespace that might help with this. Here's a place to start:

TcpClient.Activ e Property

http://msdn.microsoft.com/library/de...ctivetopic.asp
"Elizabeth Harmon" <EH*****@bloomi ngtonfarms.com> wrote in message
news:OQ******** ******@TK2MSFTN GP09.phx.gbl...
How can i detect if a user is connected to a newtork or the internet using .Net? are there any examples out there?

Any Help or links Greatly Appreciated

TIA

Samantha


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2578
by: Matt Hawley | last post by:
I'm facing a problem where I need to verify that my windows forms application has access to the internet before it can do anything. Currently, the only way I can think of is by creating a HttpWebRequest and point it to the specified URL I wish to connect to later on, and if that throws an error, I know I don't have an internet connection. Is this the best method for detecting an internet connection, or is there some sort of routine that I need...
4
2803
by: Peter Flynn | last post by:
I'm having trouble finding example code to detect the presence of an Internet connection. It doesn't seem to be a very frequently asked question, as all I need is the answer yes or no (is the user connected or not). I'm not interested in speed detection or any other aspect of the connection, just its existence or not. The reason is to be able to intercept link clicks on a CD-based set of HTML pages and pop up a warning if there is no...
3
1419
by: Graeme Hinchliffe | last post by:
Hiya I have now managed to get my code to function correctly for a none present db, and one that is shutdown whilst it is being used. In both cases my code functions and happily recovers on the db's return. However one of the tests I performed was to kill -9 the postmaster process to see how it would handle that (assuming the same behaviour). However nothing happens! no segfault, no db connection failure etc. Also what is weird is...
0
1154
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I m facing a big problem... How can i detect that either the internet connection id dialup or is on LAN or is their both connection exists...... and what is the connection speed. And is their any wireless connection exists... and connection speed and strength of signals.... etc... Thanx >> ALI <<
0
8335
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.