If you look at the sources, you will see that getNetworkInterfaces simply returns an enumeration that is supported by the NetworkInterface array, which is returned by the getAll () method, which is native. Thus, it is implementation dependent and system dependent. You can't do anything about it.
Vladimir Ivanov
source share