如何分辨一个网络与另一个网络(C#)? [英] How can I tell one network from another (C#) ?

查看:88
本文介绍了如何分辨一个网络与另一个网络(C#)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不会说英语.
如何分辨一个网络与另一个网络?
在一般问题中:根据本地网络的位置(在家,在办公室,在uni),将适当的配置文件与设置一起应用(在配置文件中包含IP,如果它是静态网络,DNS等) .).
问题出在哪里:我了解如何更改IP,DNS和其他设置,但是如何知道我现在要选择适当的配置文件的网络?
即我只是vtyknul电缆和所有东西-将自己暴露在外.可以像在软件级别上做某件事吗?
操作系统-Win 7
我用C#

I do not speak English.
How can I tell one network from another?
In the general problem: depending on where in the local network, we are (at home, at work, at uni), apply the appropriate profile with the settings (in the profile contains IP, if it is a static network, DNS, etc.).
What''s the problem: I understand how to change the IP, DNS and other settings, but how do I know which network I''m in the moment to select the appropriate profile?
Ie I just vtyknul cable and everything - setting themselves exposed. Can it be like to do something at the software level?
OS - win 7
I write in C #

推荐答案

编写.如果要在C#中编写代码,则应在C#论坛中发布:^ ]
If you want code in C#, you should post this in the C# forum: http://www.codeproject.com/script/Answers/List.aspx?tab=active&tags=81[^]


这篇关于如何分辨一个网络与另一个网络(C#)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆