Multiple Network Adapter issues

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Our application is running on computers with multiple connections like Wi-Fi
/ 1x / Lan etc. How can we know which adapter is currently use by WebServices
Call. We use .Net 2.0 framework.

Thanks,
 
Hi

In such a multiple NetWork Adapter scenario, the routing table will
dertermine which network adapter will be used, according to the destination
IP.

If the two network adapter is in the same network segment, they are chosen
randomly. i.e. If to reach certain destination IP, the two network adapters
are all available(The available here is based on the routing table), then
they are randomly.

For the WebService, as a such high level web application, we should not
care such a low level transport level work.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Peter,

The idea is to inform the user which adapter the system is currently using.
The reason beeing that some channel are chargeable on per byte basis (ex. 1x
or sallelite connection).

Since we have acces to the list of all adaptor with :
Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces

Is there a way we can obtain the route table? Since all network adapter are
usually on different network segment, we should then be able to deduct which
network interface is currently is use.

Regards,
 
Hi

Usually we use the DOS Command:
route print
to get the route table information.

Also we can use the WMI class Win32_IP4RouteTable, here is some vb script
code, you can run them in the VB.NET.
http://www.rallenhome.com/books/winsckbk/src/10-08-route_print.vbs.txt

Win32_IP4RouteTable
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
win32_ip4routetable.asp

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top