Acess Jboss from outside the server

shragi
shragi used Ask the Experts™
on
Hi - I created a ec2 server in amazon and host my application there.
Its working I mean
http://localhost:8082/testapplication 
link is working but when I try to access this outside the environment it's not working
I tried using the IPaddress
http://11.11.111.111:8082/testapplication 
I am using Jboss 7.1.1

so what changes should i make in jboss to make this available outside the server.

Thanks,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Two things to check:

1) The EC2 firewall has been opened on the port you are running JBoss (or you are using an apache httpd proxy and open port 80).
2) That JBoss is started to listen on all NICs.  By default it only listens on 127.0.0.1.  You have to start it with -b 0.0.0.0 (prior to 7.x) to listen to all NICS (or specify which NIC to listen on).  For 7.0 have a look here:

https://developer.jboss.org/thread/168789?_sscc=t

Author

Commented:
Hi Anthony - I am using standalone.bat to start the server
so I updated the standalone.xml as below
<interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:0.0.0.0}"/>
        </interface>
        <interface name="unsecure">
            <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
        </interface>
    </interfaces>

removed all 127.0.0.1 to 0.0.0.0

coming to EC2 I edited scurity group as below
Type = All traffic
Protocol: All
port: All
source: 0.0.0.0/0

Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial