[wildfly-dev] WildFly Server IP Address and Port

Arun Gupta arun.gupta at gmail.com
Tue Sep 1 13:20:20 EDT 2015


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


More information about the wildfly-dev mailing list