2 Replies Latest reply on Nov 3, 2008 7:58 PM by ericjava

    Always starting with -b 0.0.0.0 option

      Hi.. I'm new on JBoss.

      I've just finished to install JBoss on my Linux machine but I had problem testing connectivity at http://:8080
      I've edited my /etc/hosts file adding editing localhost and IP address of my machine, but I still was not able to connect to 8080 port (only 127.0.0.1 was listening for incoming connection to 8080 port) using web browser.

      Then I read some post suggesting to execute ./run.sh with -b 0.0.0.0 option.

      Is there a way to always startup JBoss with -b option ? I mean... if I need to edit an XML file or something like that...


      Thanks.

        • 1. Re: Always starting with -b 0.0.0.0 option
          peterj

          Two possibilities:

          1) Edit the run.sh so that is always supplies '-b 0.0.0.0'

          2) Create a new shell script and have it execute the run.sh script passing -b 0.0.0.0

          I prefer option 2.

          • 2. Re: Always starting with -b 0.0.0.0 option

             

            "PeterJ" wrote:
            Two possibilities:

            1) Edit the run.sh so that is always supplies '-b 0.0.0.0'

            2) Create a new shell script and have it execute the run.sh script passing -b 0.0.0.0

            I prefer option 2.


            A really good option for the script in #2 is to start and stop JBoss with an init script in /etc/init.d. In fact there are example init scripts that you can use for this.