enumerateLocalInterfaces
Android interface enumeration via NetworkInterface (same as JVM).
Enumerate local interface addresses: a port of enum_net() (enum_net.cpp). This is an expect/actual declaration because listing interfaces is a per-OS syscall with no portable KMP API (NetworkInterface on JVM/Android, getifaddrs on Apple).
Apple interface enumeration.
Full enumeration needs getifaddrs(3) from <ifaddrs.h>, which Kotlin/Native's stock platform.posix does not expose. Adding it requires a small cinterop .def (a build-config change) that has not been made. Until then we return just the loopback address. This is benign for the engine: iOS clients bind to 0.0.0.0 and do not rely on interface enumeration (it is used by libtorrent mainly for desktop/server multi-homing and UPnP LAN-address discovery).
JVM/desktop interface enumeration via NetworkInterface.