Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 30 Jan 2006 19:47:17 -0800,    group: microsoft.public.platformsdk.networking        back       


How to differentiate between a LAN, Isolated LAN and PPP Ethernet connection ?   
Hello,
I want to 'Programatically' differentiate between the connections made
to my computer using the following:
1) LAN which can connect to the outside world.
2) An Isolated LAN
3) A simple Ethernet connection between 2 computers.

The IP configurations in all the 3 cases may be either be Static or
Dynamic.
I can know the IP address using which the connection has been
established.
I tried exploring WMI Network Adapter Configurations (
Win32_NetworkAdapterConfiguration and Win32_NetworkProtocol), but could
not find any information that can clearly differentiate between these 3
kinds of connections.
Any Suggestions ??
date: 30 Jan 2006 19:47:17 -0800   author:   unknown

Re: How to differentiate between a LAN, Isolated LAN and PPP Ethernet connection ?   
Hi!
If peers run in domain , workgroup 3) and 2) is the same and the difference 
is number of computers so you can use
WNetEnumResource() to check that number.
To differ connection to "outside world" you can use
ping to some well-known address ( www.microsoft.com e.g. )
or use InternetCheckConnection() for that
Arkady

 wrote in message 
news:1138679237.268506.45770@z14g2000cwz.googlegroups.com...
> Hello,
> I want to 'Programatically' differentiate between the connections made
> to my computer using the following:
> 1) LAN which can connect to the outside world.
> 2) An Isolated LAN
> 3) A simple Ethernet connection between 2 computers.
>
> The IP configurations in all the 3 cases may be either be Static or
> Dynamic.
> I can know the IP address using which the connection has been
> established.
> I tried exploring WMI Network Adapter Configurations (
> Win32_NetworkAdapterConfiguration and Win32_NetworkProtocol), but could
> not find any information that can clearly differentiate between these 3
> kinds of connections.
> Any Suggestions ??
>
date: Tue, 31 Jan 2006 09:10:05 +0200   author:   Arkady Frenkel

Re: How to differentiate between a LAN, Isolated LAN and PPP Ethernet connection ?   
suwarna.joshi@gmail.com wrote:
> Hello,
> I want to 'Programatically' differentiate between the connections made
> to my computer using the following:
> 1) LAN which can connect to the outside world.
> 2) An Isolated LAN
> 3) A simple Ethernet connection between 2 computers.

All of these are ill defined. If you want a meaningful answer then you need 
to specify in great detail what you consider to be these 3 cases. Keep in 
mind that 'outside world' is relative as is an 'isolated' LAN etc.

But even if you somehow define what these terms mean for you the answer is 
most likely going to be "impossible". While sitting on you local machine 
there really isn't a way to know much about your network topography.

What exactly are you trying to accomplish?


-- 
Eugene
http://www.gershnik.com
date: Tue, 31 Jan 2006 00:43:54 -0800   author:   Eugene Gershnik

Re: How to differentiate between a LAN, Isolated LAN and PPP Ethernet connection ?   
Hello,

Thank You for the suggestion. But I think I need more information to
solve my problem
The situation is something like this....
Assume that I have 3 Network cards on my system. Each of them
connecting to the 3 different network connection types that I have
mentioned in my previous mail. Now whenever a user connects to my
computer, I want to know using which Network he/she has connected.
WNetEnumResource( ) returns all the resources on all networks and
provides no information to know the network to which the resource
belongs to..(please correct me if I am wrong..)
Is there a way by which I can know the Number of Resources on 'One
Particular Network'?
date: 31 Jan 2006 20:12:03 -0800   author:   unknown

Re: How to differentiate between a LAN, Isolated LAN and PPP Ethernet connection ?   
When user connected check if her IP is of your subnet or not
( IP & Mask give subnet )
Arkady

 wrote in message 
news:1138767123.878237.63630@f14g2000cwb.googlegroups.com...
> Hello,
>
> Thank You for the suggestion. But I think I need more information to
> solve my problem
> The situation is something like this....
> Assume that I have 3 Network cards on my system. Each of them
> connecting to the 3 different network connection types that I have
> mentioned in my previous mail. Now whenever a user connects to my
> computer, I want to know using which Network he/she has connected.
> WNetEnumResource( ) returns all the resources on all networks and
> provides no information to know the network to which the resource
> belongs to..(please correct me if I am wrong..)
> Is there a way by which I can know the Number of Resources on 'One
> Particular Network'?
>
date: Wed, 1 Feb 2006 16:41:44 +0200   author:   Arkady Frenkel

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us