Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. DCOM & Dual LAN

DCOM & Dual LAN

Scheduled Pinned Locked Moved COM
sysadmincollaborationquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Deepak Bajaj
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • D Deepak Bajaj

      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

      P Offline
      P Offline
      pba_
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups