Due to possibly Bonjour issues OSX sometimes can decide that your LocalHostName is taken and append a number to it. On OSX HostName and LocalHostName are set via terminal with help of "scutil -set " command. Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)ĭefault network configuration in /etc/hosts and /etc/nfĬalling InetAddress.getLocalHost().getHostName() takes about 5 seconds on JDK 8 update 66 (anything above update 51) and less than a millisecond on JDK update 51. Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |