23 Jul 2015

Accessing JBoss using IP address in network

By default, JBoss allows you to access the applications from localhost.

If you want to access them from other computers in lan edit standalone.xml file which looks like 

<interfaces>  
<interface name="management">  
   <inet-address value="127.0.0.1"/>  
</interface>  
<interface name="public">  
  <inet-address value="127.0.0.1"/>  
</interface>  
<interface name="unsecure">  
  <inet-address value="127.0.0.1"/>  
</interface>  
</interfaces>  

and change it to 

<interfaces>  
<interface name="management">  
   <inet-address value="127.0.0.1"/>  
</interface>  
<interface name="public">  
  <inet-address value="[IP Address]"/>  
</interface>  
<interface name="unsecure">  
  <inet-address value="127.0.0.1"/>  
</interface>  
</interfaces>  

Make sure that the following like contains "public" like this

<socket-binding-group name="standard-sockets" default-interface="public"> 

No comments:

Post a Comment