Get PC name

J

Juan T. Llibre

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
==================================
 
M

Mark Rae

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...?
 
B

Bruce Barker

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

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top