简体   繁体   English

用Javascript获取瘦客户端的虚拟IP地址

[英]Getting virtual IP address of thin client in Javascript

Don't know whether it is doable. 不知道这是否可行。

We are currently using terminal server and thin clients in our network and planning to get each of its virtual IP addresses using Javascript to handle an application that runs on each thin clients. 当前,我们正在网络中使用终端服务器和瘦客户机,并计划使用Javascript获取其每个虚拟IP地址,以处理在每个瘦客户机上运行的应用程序。

It is currently now returning all the virtual IPs that are assigned for each thin clients. 当前,它正在返回为每个瘦客户端分配的所有虚拟IP。 Is there any way that I can get only the assigned virtual IP address for one particular thin client? 有什么方法可以让我仅为一个特定的瘦客户端获得分配的虚拟IP地址? Below is the code which returns all virtual IP address 以下是返回所有虚拟IP地址的代码

Please let me know if anything is unclear. 如果有任何不清楚的地方,请告诉我。

Thanks in advance 提前致谢

Your application is running on the server, not the thin client. 您的应用程序正在服务器而不是瘦客户端上运行。 That's the whole idea of the thin client: It's a display + keyboard without its own CPU. 这就是瘦客户机的整体思想:这是一个显示器+键盘,没有自己的CPU。

So when you run an application and you ask for "what is my IP address", then you get the server's address back because that is the place where you application is really running. 因此,当您运行一个应用程序并询问“我的IP地址是什么”时,您将获得服务器的地址,因为那是应用程序真正运行的地方。 The server simulates a graphics card so the app can render and then sends snapshots of this image to your thin client. 服务器模拟一个图形卡,以便应用程序可以呈现该图像,然后将该图像的快照发送到瘦客户端。

Now if you told us what kind of hardward and software you're using (terminal server, thin client, etc) then there might be a special option. 现在,如果您告诉我们您使用的是哪种保护措施和软件(终端服务器,瘦客户端等),那么可能会有一个特殊的选择。

Or look into the documentation of your terminal server. 或查看终端服务器的文档。 Somehow, it maps a user login to a terminal. 它以某种方式将用户登录名映射到终端。 That's probably the way to go to identify a terminal (you probably don't want to show everyone the same app, you want to show each user his/her app). 这可能是识别终端的方法(您可能不想向所有人显示相同的应用程序,而是希望向每个用户显示他/她的应用程序)。

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

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