473,379 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Internet connection present?

I have a partly produced VB.NET app that needs to 'know' when the client
machine has an interent connection so that it can connect to a remote
webservice.
Any ideas?

Thanks
Andy
Jul 20 '06 #1
3 884
Ultradiv,

Yes set it in a try and catch block if it does not connect than there is no
connection to that webservice.

Cor

"ultradiv" <an**@vpwd.netschreef in bericht
news:ea***************@TK2MSFTNGP05.phx.gbl...
>I have a partly produced VB.NET app that needs to 'know' when the client
machine has an interent connection so that it can connect to a remote
webservice.
Any ideas?

Thanks
Andy


Jul 20 '06 #2
Thanks Cor.
I'll do that
Andy

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:u$****************@TK2MSFTNGP04.phx.gbl...
Ultradiv,

Yes set it in a try and catch block if it does not connect than there is
no
connection to that webservice.

Cor

"ultradiv" <an**@vpwd.netschreef in bericht
news:ea***************@TK2MSFTNGP05.phx.gbl...
I have a partly produced VB.NET app that needs to 'know' when the client
machine has an interent connection so that it can connect to a remote
webservice.
Any ideas?

Thanks
Andy


Jul 20 '06 #3
ultradiv wrote:
I have a partly produced VB.NET app that needs to 'know' when the client
machine has an interent connection so that it can connect to a remote
webservice.
Any ideas?
In VB2005 you can use My.Computer.Network.IsAvailable, but as the docs
say that only tells you if "a computer is connected to *a* network". In
the long run, with proxies and network topologies and firewalls and so
on, the only sure way to tell if you can connect to a remote webservice
is to Try is and see. I mean, Try it and Catch.
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Jul 20 '06 #4

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

Similar topics

12
by: Cliff Wells | last post by:
Hi, I'm writing an application that needs to know if an Internet connection is available. Basically, I want to have something similar to what a lot of email clients have, where the app can work...
9
by: ThunderMusic | last post by:
Hi, probably the question have been asked many times, but I can't find the answer anywhere. Is there a way to detect if an internet connection is active? just like Internet explorers detect you...
2
by: yyy | last post by:
Hello, Can someone please tell me how I can connect to the Internet and/or disconnect from it using C#.NET ? I just want to open this window in order to connect:...
15
by: ezmiller | last post by:
Does anybody know how to use javascript to test whether or not an internet connection exists? Is this possible even?
8
by: Nikola Bucic | last post by:
Could someone tell me how can I constantly check if I'm connected to internet and if possible to determine what type of connection is it. My best shot wright now is to have a timer which will...
19
by: Mark 123 | last post by:
I just read at http://groups.google.com/group/microsoft.public.access.forms/browse_frm/thread/766ba7b493eacb63/8a7d5504ee848c21?lnk=st&q=migrate+access+97+to+access+2007&rnum=1#8a7d5504ee848c21...
7
by: Steve | last post by:
Hello, I am a beginner/intermediate c++ coder. I have a program that I am writing and would like to be able to distribute to some of my friends. The problem with this is that the data files...
5
by: Ke Tao | last post by:
HI All, Is there anybody have an idea of how to detect internet is reachable ? At present , I'm using ping to detect internet is reachable , but it's maybe a bad idea , some firewall of router...
4
by: Anjan Bhowmik | last post by:
I want to query the dial up connections present in the system, which will host my application. My user want to connect automatically to the internet if the dialup connection was hanged. Ho do...
6
by: =?Utf-8?B?QnNtZW5nZW4=?= | last post by:
I am trying to make sure that the local connection is up. I have presently been using the NetworkChange.NetworkAvailabilityChanged Event for this. Is there a better way to do this? Also, I...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.