如何获得Android平板电脑的名称 [英] how to get android tablet machine name
本文介绍了如何获得Android平板电脑的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var name = (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
var pcname = ElogCon.getName(name);
美好的一天。 。上面的代码获取特定PC的机器名称,回合我不知道如何获得Android平板电脑的机器名称,DNS名称空间不存在于adroid中。
任何建议/帮助将不胜感激所以请帮助我。
我只是一个新手开发者,所以我正在寻求你所有的帮助。
谢谢
good day guys. . the above code gets the machine name of specific pc,bout I dont know how to get the machine name of an android tablet,the DNS namespace dont exist in adroid.
Any suggestions/help will be appreciated so please help me.
Im just a newbie developer so im seeking for all your help.
thanks
推荐答案
那是对的。从HTTP服务器的角度来看,平板电脑的机器名称不存在。这是正常情况=,即使使用台式计算机也是如此。大多数客户端系统从未在DNS数据中规定。
如果您能解释您的最终目标,您可能有机会获得一些替代建议。我不知道为什么以及如何识别机器。对于Web应用程序,这是非常不典型的。 (这不是一个Web应用程序,Request
表示HTTP请求吗?)
- SA
That's right. From the standpoint of your HTTP server, your tablet's machine name just does not exist. This is the normal situations=, even with desktop computers. Most client systems are never prescribed in DNS data.
If you can explain your ultimate goal, you may have a chance to get some alternative advice. I have no idea why and how would you need to identify the machine. For Web applications, this is quite untypical. (Isn't it a Web application, withRequest
representing a HTTP request?)
—SA
tnx用于回复。 。我的当前系统是由接待员用于eLog注册的访客,申请人等。他们使用平板电脑访问我的WebApp.Now系统使用两个站点在diff位置,我需要设置每个平板电脑,以便主站点只能访问其平板电脑登录的访客,与其他网站相同。
我希望你能得到我需要的东西
顺便说一句,我正在使用C#.net 3.5框架
tnx for reply. . my current system is used by the receptionist for eLog Registration for the visitors,applicants,etc.Their using tablet to access my WebApp.Now the system used by two sites in diff location,and i need to set each tablet so that the main site can acess only the visitors that log in in their tablet,the same with the other site.
I hope you get what I need to do
By the way i'm using C# .net 3.5 framework
这篇关于如何获得Android平板电脑的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文