WildFly Server IP Address and Port
by Arun Gupta
Assuming WildFly is bound to all available IP addresses using -b
0.0.0.0, is there a WildFly-specific API that can be used to obtain
the IP address where the server is running?
Ideally, I'd like something like:
WildFly.getHostAddress()
WildFly.getHostPort()
It could be running in a Docker container, in AWS, on my local laptop,
in OpenShift, or any where else and would like the IP address to be
returned correctly.
Suggestions?
Arun
--
http://blog.arungupta.me
http://twitter.com/arungupta
9 years, 3 months