Getting local host via InetAddress.getLocalHost() under Linux



Whatever I do, Linux machines in my project throw an exception when calling

Googling about it confirmed there's an issue here, ancient as the moon, but I could not find any solution.

This nasty behavior hinders initialization of ehcache and execution of jmeter tests, just to name a few places.

I stopped using it from my code altogether, but some code that uses it (as these two examples) resides in my 3rd party libraries.


Does anybody know of a fix to this issue? whether java-based or network configuration, any suggestion is welcome...





Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at