In some cases, mostly due to architectural reasons, you may need to run multiple WildFly instances on a single server. You can do this by isolating each instance and giving it different binding IPs. The IPs might be virtual or effectively provided by the physical network interfaces installed on your system. Either way is good.
If you decide on virtual IPs, you can do this as follows:
$ sudo ifconfig YOUR_NIC:1 10.0.1.1 netmask 255.255.255.0 $ sudo ifconfig YOUR_NIC:2 10.0.1.2 netmask 255.255.255.0
Here YOUR_NIC
might be eth0
. Now, if you list all the available interfaces in your server, you will also see the following new ones:
$ ifconfig eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether f0:de:f1:99:b2:94 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors...