I'm working on preparing a program that runs on Wildfly for deployment to a customer site, and I need to change the IP address that Wildfly launches on. How do I configure Wildfly to start up at, for example, 127.0.0.2 instead of 127.0.0.1?
Update
I'm running Wildfly as a service on Windows.
You could set different ip address by changing public interface in the standalone.xml file. It should look like this:
So, the server is now listening only on the specified ip address (after restarting). If you want allow all available network interfaces, you should place 0.0.0.0 instead (be careful with this).
Either you can bind the address through passing the arguments while starting the server like
https://sourcevirtues.wordpress.com/2013/12/09/set-wildfly-binding-address-and-shutdown-from-cli/
or it can be configured in host.xml file
http://www.mastertheboss.com/jboss-server/jboss-configuration/how-to-access-jboss-as-over-a-network
Update : To run as service, you will need to set some variables in service.bat as well