2 Replies Latest reply on Feb 16, 2009 10:53 AM by peterj

    Jboss 4.0.5 Multiple Interfaces

    ovidiu_a

      Hi,

      Is it possible, or better yet, how exactly should Jboss be configured / ran to listen on multiple IP addresses. At the moment I can either bind it to one of the interfaces or have it use the default one, I'm interested in using 3 interfaces.

      To be more precise, it does 'listen' on the interfaces, but it replies on only 1 of them. Ex:

      Jboss machine ip's:

      192.168.1.4
      10.3.3.3
      10.3.4.3

      Each of them are separate networks. By default it's listening on all interfaces ( gets request) , but the reply goes out on only 10.3.3.3. Any way to change this ?

      Thank you

      P.S. I am rather inexperienced with this

        • 1. Re: Jboss 4.0.5 Multiple Interfaces
          jaikiran

          Not sure i understood the question correctly. But is this what you are looking for (see the -b option while starting the server) http://www.jboss.org/community/docs/DOC-9384

          • 2. Re: Jboss 4.0.5 Multiple Interfaces
            peterj

            I don't think that this is under the control of JBoss AS. It just sends something out and it is the TCP/IP stack that determines how the data will be routed (that is, via which address). I don't know how, or if, you can configure the TCP/IP stack to send via a particular address. I have often wondered this myself but have not yet been curious enough to google the issue.

            On thing you can try is use tracert (or similar utility) to trace the route to the destination IP address - this should tell you which IP address on your machine is the starting point. I don't know if you can tell tracert which IP address to start with. But it sounds like some fun experimenting to do on a cold rainy day (that is, if I already did not have a ton of work to do).

            By the way, if you learn anything, please post it here.