简体   繁体   English

有没有办法获得唯一的计算机ID?

[英]Is there a way to get an unique computer id?

We are looking for a way to know from what computer our silverligth or web application is running. 我们正在寻找一种方法,以了解Silverligth或Web应用程序在哪台计算机上运行。 We first wanted it to do by MAC adress but we found out that silverligth can't access the mac adress. 我们首先希望它通过MAC地址来执行,但是我们发现silverligth无法访问mac地址。

I was wondering is there a way go get a unique computer adress like a mac adress or something else pc unique? 我想知道是否有办法获得独特的计算机地址,例如mac地址或其他PC独特的地址? by silverligth/javascript/html or something else web based witout installing anything on their pc? 是通过silverligth / javascript / html还是其他基于Web的方法在他们的PC上安装了什么软件?

Thx Matthy 玛蒂(Thx Matthy)

Generally it isn't possible to get a 100% unique identifier for each computer, however it is possible to get it somewhat unique. 通常,不可能为每台计算机都获得100%唯一的标识符,但是有可能使它有些唯一。 I have previously implemented some javascript/java code to do that. 我以前已经实现了一些javascript / java代码来做到这一点。 It worked by generating a hash from a few characteristics of client's machine: 它通过根据客户端计算机的一些特征生成哈希来工作:

  • Fonts installed on client's machine 客户端计算机上安装的字体
  • Java version Java版本
  • Silverlight version Silverlight版本
  • IP address IP地址

The combination created a somewhat unique identifier for each client, although it is very possible that several clients would have the same identifier. 组合为每个客户端创建了一个稍微唯一的标识符,尽管很可能多个客户端将具有相同的标识符。 Or something like that... It was a long time ago. 或类似的东西...很久以前。

(The whole thing depended heavily on having Java or Silverlight installed. Also user would need to allow the site to run the applet...) (整个过程在很大程度上取决于是否安装了Java或Silverlight。此外,用户还需要允许该站点运行该applet ...)

I would suggest not going that way and simply accept the fact that it's not quite possible and find other solution to your problem. 我建议不要那样做,只接受不可能的事实,并找到解决您问题的其他方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM