Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

thoeni/inetTester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

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

Usage:

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 127.0.0.1 like:

127.0.0.1 localhost mbpro.local
::1 localhost mbpro.local

About

Quickly check elapsed time to retrieve local hostname

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /