如何使用asp.net Web应用程序单独找到客户端计算机。 [英] How do I find a client machine individually using asp.net web application.?

查看:60
本文介绍了如何使用asp.net Web应用程序单独找到客户端计算机。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的名字是Raja A,

在我的asp.net网络应用程序中,我需要找到每个使用我的应用程序的客户端

使用任何唯一的客户端机器标识。



我试图通过使用Web服务器控件找到客户端的MAC地址

但是在我这样做的时候,我为所有客户端机器获得了相同的服务器MAC。



任何人都可以帮助我,用这个问题。

(请问我是初学者)。

Hi,
My Name is Raja A,
In my asp.net web application i need to find every client using my application uniquely
by using any unique identification of client machine.

I tried to find the 'MAC' address of client by the use of "Web Server Control"
but while i do so i'm getting the same server "MAC" for all the client machines.

Can anyone help me out, with this problem.
(Think i'm a beginner please) .

推荐答案

您只能在自己的网络上获取客户端的MAC地址。谷歌获取mac地址asp.net作为例子,但如果你的服务器和客户端不在局域网上,那么你想要的就不可能了。
You can only get the MAC address of clients on your own network. Google "get mac address asp.net" for examples of this, but if your server and clients are not on a LAN then what you want isn't possible.


你做不到。

MAC地址不会传输到本地LAN网段之外,永远不会传输到互联网 - 要访问客户端MAC地址,您必须直接在客户端计算机上运行软件,这是不可能的,除非非常非常特殊情况,不适用于大多数浏览器和浏览器设置。



和...... MAC地址不是唯一的:它们只在LAN段内是唯一的,并且可以非常容易地欺骗。



除了在其上设置cookie之外,没有什么可以唯一识别任何机器 - 即便如此,我可以打开三个不同的浏览器并获得三个不同的cookie!
You can't.
MAC addresses are not transferred beyond the local LAN segment, never to the internet - to access a client MAC address you would have to run software directly on the client machine, which is impossible except in very, very special circumstances, which do not apply to most browsers and browser setups.

And...MAC addresses aren't unique: they are only unique within the LAN segment, and can be "spoofed" very easily.

There is nothing you can do to uniquely identify any machine, except to set a cookie on it - and even then, I could open three different browsers and get three different cookies!


这篇关于如何使用asp.net Web应用程序单独找到客户端计算机。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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