I think there is a way to get local ip address via getifaddrs , then create IPV4Address / IPV6Address and get interface from it
Topic:
App & System Services
SubTopic:
Networking
Tags: