上代码:
public static string GetCurrentIPv4Address()
{
// 获取所有网络接口
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces()
上代码:
public static string GetCurrentIPv4Address()
{
// 获取所有网络接口
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces()