I want to get client subnet mask using c#.
How can I get it?
First of all, check NetworkInterface class first. There are a lot of information in it. And these articles will be helpful for you:
NetworkInterface
IP Address Calculations with C# (Subnetmasks, Networks, …)
Get Subnet Mask
Finding subnet mask from IP4 address using c#
1.4m articles
1.4m replys
5 comments
57.0k users