如何使用.NET获得子网掩码? [英] How to get subnet mask using .net?
本文介绍了如何使用.NET获得子网掩码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用C#来获取客户端的子网掩码。
I want to get client subnet mask using c#.
我怎样才能得到它?
推荐答案
首先,检查 的NetworkInterface
课。有很多在它的信息。而这些文章将是对你有帮助的:
First of all, check NetworkInterface
class first. There are a lot of information in it. And these articles will be helpful for you:
IP Address Calculations with C# (Subnetmasks, Networks, …)
Get Subnet Mask
Finding subnet mask from IP4 address using c#
这篇关于如何使用.NET获得子网掩码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文