- 上一篇:【webrtc】对外的api:BasicNetworkManager 管理network列表
- 我们知道 网络管理器可以获取网络列表并维护、通知 ,其中包含了自己ip地址的获取:
QueryDefaultLocalAddress
// This function connects a UDP socket to a public address and returns the
// local address associated it. Since it binds to the “any” address
// internally, it returns the default local address on a multi-homed endpoint.
IPAddress QueryDefaultLocalAddress(int family)