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#
548k questions
547k answers
4 comments
86.3k users