I'm assuming you're starting JBossAS using the jboss-as-standalone.sh
script.
I recently had the same problem. JBoss assumes that accessing the server admin console from other machine is dangerous, so it's bindings are set by default to localhost or 127.0.0.1 at /standalone/configuration/standalone.xml
.
Change the 3 interfaces
elements to 0.0.0.0 so it can listen requests from all interfaces.
<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>
It should work the same way if you're not running JBoss in standalone mode, so edit the /domain/configuration/domain.xml
file.