0

I have a wildfly 10 running on localhost:8085, containing inside a servlet which will return some result data when a client sending request for it. When I test with my web browser on my local computer, it works fine. Now I would like to use an external device, for example RaspberryPi to send request to this servlet. How can I change IP address of the Wildfly server from localhost to maybe the IP address of my computer so that my RaspberryPi can send request to. Thank you

Ock
  • 1,262
  • 3
  • 18
  • 38
  • 1
    I think this question is already answered there http://stackoverflow.com/questions/31658647/how-to-change-wildfly-servers-ip-address – Matthias May 17 '17 at 15:26

1 Answers1

2

Either change the IP directly in the wildfly configuration (standalone.xml or whatever your config profile is) within

<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>

or specify the bind address as startup parameter:

standalone.sh -b=0.0.0.0

or standalone.sh -Djboss.bind.address=0.0.0.0

Note that 0.0.0.0 will force JBoss bind to all network adapters, you can also specify the exact IP like 192.168.0.23

For more info, look at Wildfly docs

yntelectual
  • 3,028
  • 18
  • 24