jeromq
jeromq copied to clipboard
Android - no address found IPV4 Exception
For the IPC protocol, the library iterates over the available network interfaces, and for each, over the available addresses. Still, a condition is evaluated where the loopback address presence is compared to an argument specifying if the address is local, or not. Since this variable is always false, the loopback address is never considered as an available address. Thus, when no network address is available, leading to an exception.
See: IpcAddress.java L117
The local variable is always false.
Does someone as an idea for a fix? I've tested to change local to true and everything is working fine without Wifi in these conditions but perhaps someone has a better idea?
that's a good finding. I'm not sure anymore what is the actual usage of this local boolean param. It doesn't seem to make sense in this context.
Or it could be connected to the usage of the library into Android apps. We'd need to investigate further.