1 Reply Latest reply on Mar 30, 2007 5:24 AM by ulf.hettstedt

    Ports / bind.address in JBOSS 3.2.3

    ulf.hettstedt

      Hi

      we are merging our application from IBM Websphere to JBOSS. Since I don't know either Websphere nor JBOSS it became my task. (Actually we just had a company merger and since I am responsible for installations at customer sites, I am now desperately trying to learn everything needed for installations for the (new) product in a very short time).

      Back to my task, since the application relies on a Versata Logic Server the JBOSS version to use should be 3.2.3 (maybe 3.2.6 is possible too, but nobody looked into that yet -- 4.05 is far too new,if you get my drift). With this version I am observing the use of a port, which I cannot identify and therefore I cannot configure. It is a random port, which will change everytime I start the "run.bat -b 192.168.168.80" - it is in the range between TCP/1500 and TCP/2400 (and maybe higher). For a configuration behind a firewall this range is a nightmare. Can anybody give me a hint, how to identify this port (I marked it bold in the netstat output below) and furthermore configure it?
      This port is essential, I tried to block it, which would prevent our client application to connect to the server. Another strange thing ist, that it doesn't bind to the specified address but to every interface on the server (IP-adress 0.0.0.0)

      The goal will be to have more instances of JBOSS-Servers behind a firewall. If there is someone who can give me a hint, why I can't pass the -Djboss.bind.address-Parameter to the run.jar I would be most thankful, too. It doesn't work within the run.bat neither with the Javaservice in the run.bat I tried following lines:

      --------------------------------------------------------------------
      set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=Host.domain.name
      set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.useLocalHostname=false
      set JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=192.168.168.80

      -------------------------------------------------------------------


      Z:\>netstat -nao -p TCP
      
      Aktive Verbindungen
      
       Proto Lokale Adresse Remoteadresse Status PID
      TCP 0.0.0.0:2329 0.0.0.0:0 ABHÖREN 5012
       TCP 0.0.0.0:3389 0.0.0.0:0 ABHÖREN 1508
       TCP 0.0.0.0:18350 0.0.0.0:0 ABHÖREN 5348
       TCP 0.0.0.0:49591 0.0.0.0:0 ABHÖREN 2764
       TCP 0.0.0.0:50000 0.0.0.0:0 ABHÖREN 1008
       TCP 127.0.0.1:1063 0.0.0.0:0 ABHÖREN 188
       TCP 127.0.0.1:2310 127.0.0.1:18350 HERGESTELLT 3252
       TCP 127.0.0.1:18350 127.0.0.1:2310 HERGESTELLT 5348
       TCP 192.168.168.80:1073 192.168.168.20:445 HERGESTELLT 4
       TCP 192.168.168.80:1098 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:1099 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:1117 192.168.168.20:1026 HERGESTELLT 2716
       TCP 192.168.168.80:4444 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:4445 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:8009 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:8080 0.0.0.0:0 ABHÖREN 5012
       TCP 192.168.168.80:8083 0.0.0.0:0 ABHÖREN 5012


      Best regards,
      Ulf

      * if you happen to find a strange expression: English is not my native tongue --- if you find a typo you are allowed to keep it :) *