Get PC name

  • Thread starter Thread starter Mariame
  • Start date Start date
M

Mariame

hi all,
how could i get the PC name of the client pc using ASP.net ??
 
For the server's machinename, try :

System.Environment.MachineName.ToString()

You can't get the client PC's name. ASP.NET doesn't run on the client.



Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
 
how could i get the PC name of the client pc using ASP.net ??

You can't, at least, not natively.

You could (I suppose) write a Java applet which could do this, but the
security implications would be horrible.

Why on earth do you need to know this anyway...?
 
if the pc's are on your network, then you can do a reverse dns lookup on the
request ipaddress.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top