工具類

RookieBoy666發表於2024-08-20
獲取IP
                                IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());
                                var ippaddress = host
                                    .AddressList
                                    .FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);