Discussion Locked

Machine ID on Intra net.

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I was wondering how to use VB or ASP to grab the name of a computer from the registery when a user on the Intra net hits the main page??

5 replies

by c-wundram

I assume that you want to get the hostname of the client machine and not of the web server. You can do this easily with ASP, the Reqeust.ServerVariables enumeration has the ip address of the client.

The following example will display the IP ofthe client machine.

<%
stIP = Request.ServerVariables("REMOTE_ADDR")
%>
IP = <%=stIP%>

This discussion is closed to new replies.