5 Replies Latest reply on Jan 25, 2005 4:25 PM by anil.saldhana

    Change Localhost to static IP

    zer0n3

      Greetings guys,

      I am trying to alter a JBoss install to replace the 'localhost' with an IP address. This is the first step for me to make a dual instance of JBoss on a single server with two IP address.

      So which file(s) do I need to modify to change http://localhost:80 to http://100.20.101.240:80?

      (No DNS name resolution or FQDN)

      Thanks guys :)

      -Z

        • 1. Re: Change Localhost to static IP
          zer0n3

          I forgot to mention that I have hacked and slashed all the xml configuration files where "localhost:port" have been listed with a "static IP:port" but the application still only launches via the "localhost:port".

          I am new to JBoss/Tomcat but I sure its a simple fix, it just eludes me.

          • 2. Re: Change Localhost to static IP
            anil.saldhana

            Do you want port 8080? That is the default port for Tomcat in JBoss.

            When you start Jboss and want to bind to a praticular IP address,

            do


            run --host=ipaddress where ipaddress is the ipaddress of the box where you are running.

            • 3. Re: Change Localhost to static IP
              zer0n3

              Thanks Anil

              That was just the fix I needed. The JBoss I am working with is a major customization of an older version running on a unusual port, the IP and port in the post were not the real ones.

              Thanks again, both installs are working great!

              -Z

              • 4. Re: Change Localhost to static IP
                zer0n3

                Anil,

                Could you suggest a lean book on JBoss configuration. By lean I mean something straight to the point, more advanced type of reading.

                • 5. Re: Change Localhost to static IP
                  anil.saldhana

                  Your best bet will be the admin guide.

                  If somebody in the community is interested in preparing a cheatsheet, you are welcome to place it on the wiki.