I fixed the issue you get the the first reasonable ipv4 address with this snippet, works on windows and linux the changed file can be downloaded here String host = ""; Enumeration<NetworkInterface> nets = java.net.NetworkInterface.getNetworkInterfaces(); start: for (NetworkInterface netint : Collections.list(nets)) { for (InetAddress addr : Collections.list(netint.getInetAddresses())) { if(!addr.isLinkLocalAddress() && !addr.isLoopbackAddress()) { // change to Inet6Address if you prefer ip6 if (addr...
I fixed the issue you get the the first reasonable ipv4 address with this snippet, works on windows and linux the change file can be downloaded here String host = ""; Enumeration<NetworkInterface> nets = java.net.NetworkInterface.getNetworkInterfaces(); start: for (NetworkInterface netint : Collections.list(nets)) { for (InetAddress addr : Collections.list(netint.getInetAddresses())) { if(!addr.isLinkLocalAddress() && !addr.isLoopbackAddress()) { // change to Inet6Address if you prefer ip6 if (addr...