Quickly check elapsed time to retrieve local hostname
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin Initial commit Sep 26, 2016
src Initial commit Sep 26, 2016
.gitignore Initial commit Sep 26, 2016
README.md Fixed Markdown for Headlines Jul 7, 2018


InetAddress tester

Small class (and jar) to quickly check the elapsed time spent from the Java layer to access the localhost domain name.

I had few issues after upgrading from MacOS X El Capitan to MacOS Sierra and now the elapsed time passed from ~5ms-30ms to ~5000ms


java -jar bin/inetTester.jar

Solution to the issue:

If the call is slow on your Mac (or other OS?) it could be solved by adding the hostname that the application will return on your hosts file, pointing to like:   localhost mbpro.local
::1         localhost mbpro.local