How to change the IP address of the Wildfly server

I am working on preparing a program that runs on Wildfly for deployment on a client site, and I need to change the IP address that runs Wildfly. How to configure Wildfly to run, for example, 127.0.0.2 instead of 127.0.0.1?


Update

I am running Wildfly as a service on Windows.

+6
source share
2 answers

Or you can bind the address by passing arguments when the server starts, for example

./standalone.sh -c standalone-full.xml -b=127.0.0.2 

https://sourcevirtues.wordpress.com/2013/12/09/set-wildfly-binding-address-and-shutdown-from-cli/

or it can be configured in the host.xml file

 <interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.2}"/> </interface> 

http://www.mastertheboss.com/jboss-server/jboss-configuration/how-to-access-jboss-as-over-a-network

Update: to start as a service, you will also need to set some variables in service.bat

 set CONTROLLER=localhost:9990 // here set your ip:9990 and other required details set DC_HOST=master set IS_DOMAIN=false set LOGLEVEL=INFO set JBOSSUSER=admin //management admin user set PASSWORD=pwd //management admin password 
+6
source

You can set a different IP address by changing the open interface in standalone.xml. It should look like this:

 <interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.2}"/> </interface> 

So, the server now listens only for the specified ip address (after restart). If you want to allow all available network interfaces, you should instead install 0.0.0.0 (be careful with this).

0
source

All Articles