Linking JBoss AS 7 with all interfaces

I am running JBoss AS7 offline using. /standalone.sh. This only binds JBOSS to the local host. Is there a way to bind it to all hosts, I mean 0.0.0.0.

Older versions had the -b option to transfer 0.0.0.0, I cannot find any options to use here.

+49
java web-applications
Jul 28 '11 at 2:11
source share
4 answers

Modify the standalone /configuration/standalone.xml and insert the any-address tag instead of inet-address , bound to 127.0.0.1 - Example:

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

In the public interface, I changed the source inet-address to any-address . After restarting, you will be able to view port 8080 JBoss over the network.

+99
Aug 07 2018-11-11T00:
source share

Thanks for the tip above, FYI I found that using <any-address/> can lead to

 10:31:22,605 ERROR [org.apache.catalina.core.StandardService] (MSC service thread 1-2) Connector.start: LifecycleException: service.getName(): "jboss.web"; Protocol handler start failed: java.net.SocketException: Protocol family not supported at org.apache.catalina.connector.Connector.start(Connector.java:1058) 

Wed http://community.jboss.org/thread/168789?tstart=120

You can bypass it by replacing it with <any-ipv4-address/>

which gives you:

 <interfaces> <interface name="management"> <inet-address value="127.0.0.1"/> </interface> <interface name="public"> <any-ipv4-address/> </interface> </interfaces> 
+18
Sep 15 2018-11-11T00:
source share

We added support for -b in 7.0.2.

+13
Sep 28 2018-11-11T00:
source share

You can also do the following:

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

or if you want to bind to a specific address, replace 0.0.0.0 with ip.

+8
Dec 07 2018-11-11T00:
source share



All Articles