On Windows, the loopback interface display name may be reported as "Software Loopback Interface 1", which AddressInfo fails to parse even though the interface is valid.
Since the Network.parseAddress(...) is using the NetworkInterface.getByName(...) this does not always ( at least not on windows ) work with the display name.
For now we can just catch the exception and use lo.getName().
try {
addr = Network.parseAddress("[ff02::42:1]:5099@" + lo.getDisplayName(), PVASettings.EPICS_PVA_BROADCAST_PORT);
} catch (Exception ex) {
addr = Network.parseAddress("[ff02::42:1]:5099@" + lo.getName(), PVASettings.EPICS_PVA_BROADCAST_PORT);
}
On Windows, the loopback interface display name may be reported as "Software Loopback Interface 1", which AddressInfo fails to parse even though the interface is valid.
Since the Network.parseAddress(...) is using the NetworkInterface.getByName(...) this does not always ( at least not on windows ) work with the display name.
For now we can just catch the exception and use lo.getName().