0

Im trying to remotely access to Wildfly from other pc in local network(no localhost) and I can only do that if I run the server (with standalone.bat) that way:

standalone.bat -b=0.0.0.0

The problem is that I don't wanna to do this manually each time I run the server, I tried editing standalone.xml that way:

<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:0.0.0.0}"/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
    </interface>
</interfaces>

But dont work, also tried to do the same through the wildfly UI but also don't work, what im doing wrong? Thanks in advance!

MikeOx
  • 167
  • 1
  • 1
  • 16
  • 1
    if you're using windows I think you can `set "SERVER_OPTS=-b 0.0.0.0"` in file `standalone.conf.bat` inside `bin` directory. However setting your public interface to all network adapters like you did in standalone.xml should also work. You have to restart your server though. – Franck May 04 '16 at 12:20
  • 1
    You can also use `JAVA_OPTS` and set the `jboss.bind.address` to `0.0.0.0`. Are you by chance overriding that anywhere? That configuration should resolve to `0.0.0.0` assuming the `jboss.bind.address` is not set. – James R. Perkins May 04 '16 at 19:28
  • Thanks guys both options work: `set "SERVER_OPTS=-b 0.0.0.0"` & `set "JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=0.0.0.0"` But I don't know why if I launch server from eclipse this configuration is not loaded :/ – MikeOx May 05 '16 at 08:12
  • 1
    For Eclipse. Open server configuration (double click on server). And click link "Open launch configuration" under "General Information". Add VM arguments. – Qwertovsky May 13 '16 at 19:44
  • ty so much dude :) – MikeOx May 17 '16 at 09:06

1 Answers1

3

Open server configuration (double click on server). And click link "Open launch configuration" under "General Information". Add VM arguments. – "Qwertovsky"

MikeOx
  • 167
  • 1
  • 1
  • 16