Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var name = (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
            var pcname = ElogCon.getName(name);

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
Posted
Comments
Sergey Alexandrovich Kryukov 16-Dec-13 22:51pm    
Why?
—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, with Request representing a HTTP request?)

—SA
 
Share this answer
 
v2
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
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Dec-13 3:56am    
Not a good idea. I answered. Instead, you can introduce user authentication.
By the way, you should not post such content as "solution"; it is not; and such posts are considered as abuse. You had to add a comment to my answer, then I would get a notification on your post.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900