Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
need an input on how to connect to active directory using specific lan connection

Domain Abc -> connection 1 Domain xyz -> connection 2

i have 2 nic card which connects to diff network. at this moment we use virtual image when we need to check /reset any account on active directory for a specific xyz.

i have wrote a small app which allows me to access AD (ABC) which use connection 1

on net i came across and have gone through Socket Class (System.Net.Sockets) / System.Net.Sockets Namespace and before do more research/reading

can anyone suggest what is the way to bind it connection 2 using .net

1 solution

Why?? You do not bind an application to a NIC. An application is bound to a socket (IP/port combination) and the IP routing table will pick the correct NIC automatically for transport to a destination IP without you doing anything at all!

Maybe a bit more detailed explanation of what you're doing and your setup would be in order?
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900