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. C#
  4. .Net Remoting with multiple NICs

.Net Remoting with multiple NICs

Scheduled Pinned Locked Moved C#
csharpsysadminhelptutorialquestion
5 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.
  • M Offline
    M Offline
    Mehdi_S
    wrote on last edited by
    #1

    During my implementation for a client/server application I encountered the follwing problem: Let's say we have a client application C which is the remoting client and that connect to a Server application S which is the remoting server. C has two NICs which are both activated. The problem is when both cards are activated, the client application C is having a hard time establishing a connection with the remoting server S. It seems that the client cannot detect what card to use. Whenever we disable one card, Everything works fine. Some sites adviced to configure the "bind to" attribute but it does not work. Note that when running both application on the same machine, no problem occurs. This occurs only when the client and server application are run in different machines. Does anyone know how to correct this? Thanks in advance.

    H 1 Reply Last reply
    0
    • M Mehdi_S

      During my implementation for a client/server application I encountered the follwing problem: Let's say we have a client application C which is the remoting client and that connect to a Server application S which is the remoting server. C has two NICs which are both activated. The problem is when both cards are activated, the client application C is having a hard time establishing a connection with the remoting server S. It seems that the client cannot detect what card to use. Whenever we disable one card, Everything works fine. Some sites adviced to configure the "bind to" attribute but it does not work. Note that when running both application on the same machine, no problem occurs. This occurs only when the client and server application are run in different machines. Does anyone know how to correct this? Thanks in advance.

      H Offline
      H Offline
      HaBiX
      wrote on last edited by
      #2

      I'm guessing it works on local machine, because it goes direct on looback (127.0.0.1). I think what you need (not sure) is to add a route. This way you'll be telling whenever I'm connecting to S, use specific gateway. google "adding route multiple nic"[^] hope it helps

      M 1 Reply Last reply
      0
      • H HaBiX

        I'm guessing it works on local machine, because it goes direct on looback (127.0.0.1). I think what you need (not sure) is to add a route. This way you'll be telling whenever I'm connecting to S, use specific gateway. google "adding route multiple nic"[^] hope it helps

        M Offline
        M Offline
        Mehdi_S
        wrote on last edited by
        #3

        Thank you for your feedback. This solution may work but it will not be the best approach. The thing is that we cannot oblige the end users to configure that since that it may affect other applications. I think that this should be handled in the application level and so on it will be transparent to the user. Any idea about how to make that configured in .Net Remoting?

        H 1 Reply Last reply
        0
        • M Mehdi_S

          Thank you for your feedback. This solution may work but it will not be the best approach. The thing is that we cannot oblige the end users to configure that since that it may affect other applications. I think that this should be handled in the application level and so on it will be transparent to the user. Any idea about how to make that configured in .Net Remoting?

          H Offline
          H Offline
          HaBiX
          wrote on last edited by
          #4

          Again, I'm not sure about all this: - but I think this is a pure low level windows setting/config. Routes have to be configured/added like IP, gateway, mask, mac, etc of both network cards. I don't think this is a per-application domain (but don't hold my word to it). - there probably is a way to add a route from your .net program, but it probably requires administrative privileges (instead of configuring it manually). - I think "other applications" are already using a route that is configured right btw Why are they using dual nic? I'm curious on what is the use case.

          M 1 Reply Last reply
          0
          • H HaBiX

            Again, I'm not sure about all this: - but I think this is a pure low level windows setting/config. Routes have to be configured/added like IP, gateway, mask, mac, etc of both network cards. I don't think this is a per-application domain (but don't hold my word to it). - there probably is a way to add a route from your .net program, but it probably requires administrative privileges (instead of configuring it manually). - I think "other applications" are already using a route that is configured right btw Why are they using dual nic? I'm curious on what is the use case.

            M Offline
            M Offline
            Mehdi_S
            wrote on last edited by
            #5

            Thank you for the feedback :) First, I have just fixed this by configuring with the machine name instead of the IP address. That is a kind of workaround about that :) To answer your question, there is no use for dual nic actually. I was testing my application on a new machine and I got the error (since it does have 2 network cards) so I was figuring out if I could manage that :)

            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