xavior78
-
Total Posts
:
9
- Scores: 0
-
Reward points
:
0
- Joined: 11/11/2005
-
Status: offline
|
function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 7:19 AM
( permalink)
Good afternoon, I am looking for a function in vb.net which will check for the interntet connectivity and if the internet connectivity is there function should return what kind of network connectivity is availavle. Any suggestions? Thanks
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
RE: function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 7:24 AM
( permalink)
My first suggestion would be to post on a VB.Net forum. THis is a VBScript forum.
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
RE: function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 7:28 AM
( permalink)
Next I would ask what you mean by "return what kind of network connectivity is availavle"?
|
|
|
|
xavior78
-
Total Posts
:
9
- Scores: 0
-
Reward points
:
0
- Joined: 11/11/2005
-
Status: offline
|
RE: function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 7:31 AM
( permalink)
What i ment was return either it is let say: modem(dial in), lan, proxy, RAS,... Then return the spead of the connectivity.
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
RE: function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 8:08 AM
( permalink)
I don't know that there is a simple way to do this. To get the connection type, you could try using WMI and the Win32_NetworkAdapterConfiguration class to look for what connection has an IP address then parse that adapters Caption and Description properties to determine the connection type. AS for the speed, I think you would need to query some remote site for something then calculate the speed based on the time and the amount of information transferred. I've never seen code to do this published anywhere though. Perhaps you could explain what your end goal is and there may be some other way to get there.
|
|
|
|
xavior78
-
Total Posts
:
9
- Scores: 0
-
Reward points
:
0
- Joined: 11/11/2005
-
Status: offline
|
RE: function returns what kind of internet connectivity is available in vb.net
Friday, January 27, 2006 8:53 AM
( permalink)
Thanks, I'll try to look it up.
|
|
|
|