我想用c获取客户端子网掩码。
我怎样才能得到它?
最佳答案
首先,先检查NetworkInterface
类。里面有很多信息。这些文章将有助于您:IP Address Calculations with C# (Subnetmasks, Networks, …)
Get Subnet Mask
Finding subnet mask from IP4 address using c#
我想用c获取客户端子网掩码。
我怎样才能得到它?
最佳答案
首先,先检查NetworkInterface
类。里面有很多信息。这些文章将有助于您:IP Address Calculations with C# (Subnetmasks, Networks, …)
Get Subnet Mask
Finding subnet mask from IP4 address using c#