DCOM & Dual LAN
-
Hi All, How do we handle dual LAN in DCOM. Suppose I have two machines which are connected to two networks say network A & network B. Each machine has two IP addresses. My Server is running on one machine & Client on another. First of all when my Client makes a call to connect to the Server through which network will it get connected ? A or B ? Moreover suppose the connection was established through network A. Now I want that when someone pulls out the network A LAN cable from Client's or Server's machine then the Client automatically gets connected to the Server through netwrok B. Does DCOM has a solution for this ? Please note that the Networks cards installed in the machines are normal cards. They do not form a team. Best Regards, Deepak
-
Hi All, How do we handle dual LAN in DCOM. Suppose I have two machines which are connected to two networks say network A & network B. Each machine has two IP addresses. My Server is running on one machine & Client on another. First of all when my Client makes a call to connect to the Server through which network will it get connected ? A or B ? Moreover suppose the connection was established through network A. Now I want that when someone pulls out the network A LAN cable from Client's or Server's machine then the Client automatically gets connected to the Server through netwrok B. Does DCOM has a solution for this ? Please note that the Networks cards installed in the machines are normal cards. They do not form a team. Best Regards, Deepak
You get to decide to which machine the client will connect, by specifying the remote server name in COSERVERINFO structure when calling CoCreateInstanceEx ( or by setting the appropriate value for RemoveServerName into the registry for the server component). DCOM does not have such failsafe mechanisms - if you cannot use the primary server anymore try to switch to the other one.