Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capturing machine name

Status
Not open for further replies.

NTSGuru

Programmer
Jul 25, 2000
52
I am in dire need of some help. Is there any way that I can capture the computer name from an ASP? I cannot seem to do it, but it's vital to my current project.

Any help is greatly appreciated.

TIA
Fred
 
Request.ServerVariables("SERVER_NAME") should do the trick even though on my machine it returns the IP. Mastering ASP references that method to get the computer name of the server.

You might also try Request.ServerVariables("HTTP_HOST")

ToddWW
 
It wasn't the way I wanted to do it, but I'm using the IP addresses instead of the machine name. my problem with that is I won't be able to look back and verify the machines that are running DHCP... oh well.

BTW.. I used the request.servervariables("REMOTE_ADDR") to get the client IP....

Thanks.
Fred
 
Oh, I thought you were talking about the server. Sorry, I don't know of a way to extract the computer name of the client. It's not listed in my ServerVariables reference.

ToddWW
 
is there a where to get the machinename of the client at all, from the client side? you can have the client send it out in a form as a hidden input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top