yes, hostnames can also be used.
1 of 1 people found this helpful
You can use the hostname, but you have to ensure that it can be resolved.
Thanks Nicklas and Wolf-Dieter.
When I use hostname instead of the IP, the Wildfly service won't shut down. The below error shows:
Faulting application name: wildfly-service.exe, version: 220.127.116.11, time stamp: 0x51543b9d
Faulting module name: ntdll.dll, version: 6.3.9600.18438, time stamp: 0x57ae642e
Exception code: 0xc0000005
Fault offset: 0x0000000000035690
Faulting process id: 0x1344
Faulting application start time: 0x01d24f2687d0e49b
Faulting application path: E:\JBOSS_AS\WildFly_821\bin\service\amd64\wildfly-service.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 73a4744f-bb1d-11e6-80c5-002655d4350f
Faulting package full name:
Faulting package-relative application ID:
Is there anything else that needs to be set before using the hostname in place of an IP?