How to get subnet mask using .net?

点点圈 提交于 2019-11-29 03:53:33

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

It's impossible to know what subnet mask client's network is using (if we are talking about D and E class IP addresses).

My assumption is that by "client" you mean a remote computer connected to your server. Otherwise see @Soner Gönül answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!