4 Replies Latest reply on Nov 7, 2012 2:10 PM by muesli

    Local Access to JBoss AS7

    muesli

      Hi there everyone,

       

      I just started to dive into Jboss AS 7. I installed CentOS and Jboss AS7 on a local computer in my LAN (10.96.33.12).

      Now I want to connect to Jboss AS from another client in the same LAN (10.96.33.12).

       

      I started the AS by typing:

      ./standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0

      and it started without errors.

       

      If I enter a netstat -ano at the AS-machine I get:

      tcp      0     0 0.0.0.0:8080     0.0.0.0:*     LISTEN

       

      So I should be able to type in:

      http://10.96.33.15:8080 at my client with the ip 10.96.33.12....am I right?

      But its not working...I can't get a connection. I searched for this issue and found some advise to have a look at the standalone.xml which states the following:

       

      <interface name="management">

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

      </interface>

      <interface name="public">

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

      </interface>

      <interface name="unsecure">

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

      </interface>

       

      From 10.96.33.12 I can ping 10.96.33.15 its answering but I can't open a telnetconnection via telnet 10.96.33.15 :8080 for example...

      My iptables on 10.96.33.15 (btw a debian wheezy system) looks like this:

       

      root@saturn:~# iptables -L

      Chain INPUT (policy ACCEPT)

      target     prot opt source               destination        

       

       

      Chain FORWARD (policy ACCEPT)

      target     prot opt source               destination        

       

       

      Chain OUTPUT (policy ACCEPT)

      target     prot opt source               destination    

       

       

      Can anybody help me with that one?

      Thx in advance for your help!

       

      Best regards

      muesli

        • 1. Re: Local Access to JBoss AS7
          erasmomarciano

          Hi

           

          Type this :

           

          From you Lan

          http://10.96.33.12:8080

           

          or

           

          From your worstation

           

          http://127.0.0.1:8080

           

           

          You check that into your Broswer isn't set the proxy

           


          • 2. Re: Local Access to JBoss AS7
            muesli

            Hey erasmo2 marciano2,

             

            I tried it with http:// as the prefix but it didn't work.

            And I'm not using a proxy somewhere...so my Browser has no proxy set.

             

            If I'm doing a nmap-scan from my other client (.15) I just get to see that port 22 for ssh is opened on my jboss AS machine. Shouldn't there be at least 8080 and 9990 visible?

             

            Starting Nmap 6.00 ( http://nmap.org ) at 2012-11-07 16:59 CET

            Nmap scan report for 10.96.33.15

            Host is up (0.00033s latency).

            Not shown: 999 filtered ports

            PORT   STATE SERVICE

            22/tcp open  ssh

             

            Nmap done: 1 IP address (1 host up) scanned in 5.09 seconds

            • 3. Re: Local Access to JBoss AS7
              nickarls

              Tried disabling iptables completely? Don't know if SELinux can interfere...

              1 of 1 people found this helpful
              • 4. Re: Local Access to JBoss AS7
                muesli

                Okay okay...I fixed it. Stupid me was only focusing on iptables of my client that tries to access the AS 7 not  looking at the iptables of my AS machine...a simple

                iptables -F

                fixed it. I can now access 10.96.33.15:8080.

                 

                Thx for your help!
                Maybe we will see each other next time...cause I'm really trying to get into JBoss and its configuration.