Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2005

Tip: Looking for answers? Try searching our database.

Multiple Network Adapter issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dany C. - 19 Sep 2005 20:50 GMT
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,

Signature

Dany Couillard, ing.

"Peter Huang" [MSFT] - 20 Sep 2005 09:28 GMT
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

Signature

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

Dany C. - 20 Sep 2005 20:35 GMT
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,

Signature

Dany Couillard, ing.

> Hi
>
[quoted text clipped - 17 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 21 Sep 2005 03:51 GMT
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

Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.