DEV Community

Cover image for πŸ›  Binding WildFly 18 on all interfaces
Orestis Pantazos
Orestis Pantazos

Posted on • Edited on

πŸ›  Binding WildFly 18 on all interfaces

When DevOps engineers need to deploy web applications on WildFly 18 run command to binding on all interfaces that is the following command:

standalone.bat -b 0.0.0.0
Enter fullscreen mode Exit fullscreen mode

The equivalent command line argument to binding WildFly 18 on all interfaces is described in the following section how to configure it.

Navigate to the following path and go to standalone.xml file:

C:\Servers\wildfly-18.0.0.Final\standalone\configuration\standalone.xml
Enter fullscreen mode Exit fullscreen mode

In the end of the XML file, you can find the following code snippet:

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:127.0.0.1}"/>
    </interface>
</interfaces>
Enter fullscreen mode Exit fullscreen mode

Find and replace the public interface with IP address 127.0.0.1 with the following code snippet:

<interface name="public">  
    <any-address/>
</interface>  
Enter fullscreen mode Exit fullscreen mode

Make sure to save the changes and restart WildFly 18 server!

Top comments (0)