/other/

VPS, Debian 8, wildfly 9 listening on all interfaces

2015-08-27 18:14:09

to fix problem with interface, to expose server to world you have to change two things in standalone.xml

add any interface


<interface name='"any"'><any -address=""></any></interface>

and mark this interface as default


<socket-binding-group <interfaces="" ```="" default-interface='"any"' name='"standard-sockets"'>
<interface name='"management"'>
<inet-address value='"${jboss.bind.address.management:127.0.0.1}"/'>
</inet-address></interface>
<interface name='"public"'>
<inet-address value='"${jboss.bind.address:127.0.0.1}"/'>
</inet-address></interface>
<interface name='"unsecure"'>
<inet-address value='"${jboss.bind.address.unsecure:127.0.0.1}"/'>
</inet-address></interface>
<interface name='"any"'>
<any-address></any-address>
</interface>
</socket-binding-group>

<socket-binding-group default-interface='"any"' name='"standard-sockets"' port-offset='"${jboss.socket.binding.port-offset:0}"'>
<socket-binding interface='"management"' name='"management-http"' port='"${jboss.management.http.port:9990}"/'>
<socket-binding interface='"management"' name='"management-https"' port='"${jboss.management.https.port:9993}"/'>
<socket-binding name='"ajp"' port='"${jboss.ajp.port:8009}"/'>
<socket-binding name='"http"' port='"${jboss.http.port:8080}"/'>
<socket-binding name='"https"' port='"${jboss.https.port:8443}"/'>
<socket-binding name='"txn-recovery-environment"' port='"4712"/'>
<socket-binding name='"txn-status-manager"' port='"4713"/'>
<outbound-socket-binding name='"mail-smtp"'>
<remote-destination host='"localhost"' port='"25"/'>
</remote-destination></outbound-socket-binding>
</socket-binding></socket-binding></socket-binding></socket-binding></socket-binding></socket-binding></socket-binding></socket-binding-group>