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#
2.1m questions
2.1m answers
60 comments
56.9k users