4 Replies Latest reply on Dec 25, 2011 1:03 PM by monty_hall

    can only connect from localhost - from eclipse

    monty_hall

      NOTE: Originally written launching from eclipse.

       

      I can only connect to jboss from http://localhost:8080/MyApp, but when I "http://www.blah.com:8080/MyApp.  I can't access.  My router port forwards 8080 to my server.

       

      After modfying standalone.xml, I now can access http://192.168.1.53/MyApp.

       

          <interfaces>

              <interface name="management">

                  <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

              </interface>

              <interface name="public">

                  <inet-address value="${jboss.bind.address:192.168.1.53}"/> <===was 127.0.0.1

              </interface>

          </interfaces>

       

       

      I've also tried <inet-address value="${jboss.bind.address:www.blah.com}"/> , <any-ipv4-address/>, and <any-address/> but I still can't connect.

       

      Monty

        • 1. Re: can only connect from localhost
          monty_hall

          UPDATE:

          Found out that it will work when running standalone.bat, but not under eclipse.  Just wondering if anybody has had any luck.

          • 2. Re: can only connect from localhost
            wdfink

            I don't know how it works under Eclipse control. But maybe another config is started. Check the logfiles.

            Also how do you configure Eclipse?

            • 3. Re: can only connect from localhost
              monty_hall

              Under virtual box, my linux guest cannot access 192.168.1.53:8080 - just like accessing it externally w/ dns name.

               

              Also, under win 7 - the host, I fast user switch to another account, I can access the app, but I can't use the admin console - it complains "can't redirect" doesn't even show user authentication modal.

               

              I've set on the server

              jboss.bind.address=192.168.1.53

               

              Log:

              11:50:59,967 INFO  [org.apache.coyote.http11.Http11AprProtocol] (MSC service thread 1-14) Starting Coyote HTTP/1.1 on http-XXX-192.168.1.53-8080

               

              I've also set it to: 0.0.0.0

               

              When I diff the log output of eclipse and standalone.bat they are the same.  It seems eclipse may be applying some permission - based on user.  What to do?

              • 4. Re: can only connect from localhost
                monty_hall

                WOOT!  Turn Windows fire wall off