How to get subnet mask using .net?
Asked Answered
S

1

13

I want to get client subnet mask using c#.

How can I get it?

Sonasonant answered 16/12, 2012 at 12:50 Comment(1)
try thisEmrick
M
18

First of all, check NetworkInterface class first. There are a lot of information in it. And these articles will be helpful for you:

Milled answered 16/12, 2012 at 12:56 Comment(4)
You are talking about local network interfaces (expect for the last link), not remote...Steal
@Eugene He didn't said any thing about remote connection. Why downvote?Elderly
What about IPv6?Meek
@SonerGönül: I don't recall if I saw it to be honest but I was trying to say you should put something addressing this in your answer :)Meek

© 2022 - 2024 — McMap. All rights reserved.