50 if (Addfam ==
ADDRESSFAM.IPv6 && !Socket.OSSupportsIPv6)
57 foreach (NetworkInterface item
in NetworkInterface.GetAllNetworkInterfaces())
59#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
60 NetworkInterfaceType _type1 = NetworkInterfaceType.Wireless80211;
61 NetworkInterfaceType _type2 = NetworkInterfaceType.Ethernet;
63 if ((item.NetworkInterfaceType == _type1 || item.NetworkInterfaceType == _type2) && item.OperationalStatus == OperationalStatus.Up)
66 foreach (UnicastIPAddressInformation ip
in item.GetIPProperties().UnicastAddresses)
71 if (ip.Address.AddressFamily == AddressFamily.InterNetwork)
73 if (ip.Address.ToString() !=
HOME_IP)
74 output = ip.Address.ToString();
81 if (ip.Address.AddressFamily == AddressFamily.InterNetworkV6)
84 output = ip.Address.ToString();