7 Replies Latest reply on May 5, 2016 5:08 AM by Michal Karm Babacek

    Can't register when machine has 2 IPs

    Bill Burke Master

      I'm running in domain mode using the example provided by Stuart Douglas:

       

      GitHub - stuartwdouglas/modcluster-example: Example of how to use modcluster load balancer in domain mode

       

      I have 2 ip addresses on my laptop, ethernet (10.10.x.x) and wireless (192.168.x.x).  If I set jboss.bind.address to 192.168.x.x the backends can't register.  I get this error:

       

      [Server:backend1] 11:12:03,392 ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapter - 1) MODCLUSTER000043: Failed to send INFO command to William-MYTH/10.10.49.48:8080: Connection refused: connect
      [Server:backend2] 11:12:05,998 ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapter - 1) MODCLUSTER000043: Failed to send INFO command to William-MYTH/10.10.49.48:8080: Connection refused: connect

      The backends think they have to connect to 10.10.x.x.  I don't know how to fix this as I didn't see anywhere how to set the interface for this type of thing.  If I set the bind address to 10.10.49.48, everything works.