JBoss Community

Re: Configuring JBoss server address

created by Tan Mariani in Beginner's Corner - View the full discussion

I dont really understand what you mean....

 

As far as I know you can bind jboss to ip address in 3 ways : (I assume you use standalone)

 

1. run standalone with parameter -b ipadress

./standalone.sh -b 192.168.6.100

 

2. change your standalone.xml

<interfaces>

    <interface name="management">

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

        <inet-address value="192.168.6.100"/>

    </interface>

    <interface name="public">

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

        <inet-address value="192.168.6.100"/>

    </interface>

</interfaces>

but this way is not to recommended

 

3. add following lines in the configuration file in bin/standalone.conf property file

JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.6.100"

JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=192.168.6.100"

 

 

 

When you run standalone, there should be a line like the following on the console. What IP address is given on your output?

 

07:24:53,491 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--192.168.6.100-8080

 

 

Hope this can help you....

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community