在javascript asp.net Web应用程序中获取本地网络上的客户端计算机名称
我有一个在内部网络上运行的 asp.net (FW 3.5) Web 应用程序。一个特定页面需要向网络服务器“报告”它是活动的并且没有被锁定。我需要能够在客户端运行脚本(或其他内容)以在该报告中报告电脑的计算机名称。我找不到执行此操作的方法。我发现了一些可以报告 WAN IP 或主机名的东西,但这似乎都是面向外部的站点。
任何帮助将不胜感激。
谢谢,
I have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.
Any help would be greatly appreciated.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的应用程序必须针对 Windows 身份验证进行配置。几年前我从网上得到了这个,但它仍然对我们有用:
将其包装在客户端上的某种重复/定时 ajax 调用中,您就会得到一个每隔 x 打电话回家的网页。
Your app has to be config'd for Windows Authentication. I got this off the net some years ago, but it still works for us:
Wrap that up in some kind of repeating/timed ajax call on the client and you've got a webpage that phones home every x often.