蓝找到OS的客户端还是服务器? [英] Lan find Os client or server ?

查看:53
本文介绍了蓝找到OS的客户端还是服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要示例代码来查找客户端或服务器的操作系统名称和操作系统版本?

IP到OS的IP

I need sample code to find os name and os version for client or server ?

IP to OS

推荐答案

即使您未将标签添加到问题中,我也假设您正在谈论ASP.Net.

对于客户端,解析从该属性返回的字符串:

I assume you''re talking about ASP.Net, even though you failed to add the tag to your question.

For the client, parse the string you get back from this property:

Request.UserAgent



对于服务器本身,请尝试下面的Codeproject文章(这并不难,但是该文章介绍了一些内容):

轻松获取和比较OS版本信息 [



For the server itself, try this Codeproject article (it ain''t hard to do, but the article explains some stuff):

Easily Get and Compare OS Version Information[^]

lastly, learn to use Google. This question is EASILY answered with a simple google search.


没有用于识别网络上设备的单一协议或代码.并非所有具有IP的设备都具有您认为的客户端或服务器操作系统.您也不会看到过去配置为阻止外部访问的防火墙.

您可以尝试
C#中的网络嗅探器 [
There is no single protocol or code for identifying devices on a network. Not all devices with an IP have a client or server operating system as you would think. You will also not see past firewalls configured to prevent external access.

You can try A Network Sniffer in C#[^] to see what''s out there (by traffic type/source) and then use known protocols (WMI, bonjour perhaps?) to try to identify computers if they respond.

Cheers.


这篇关于蓝找到OS的客户端还是服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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