[thelist] ASP: getting a computer ID

webcoder at cox.net webcoder at cox.net
Thu Sep 2 13:38:10 CDT 2004


> Is there a way with ASP to get some sort of ID (string) that identifies the computer that runs the script?  The ID for that computer would have to stay the same, and be specific to that computer.
> 

I'm not sure if you mean that you want to identify the server the .asp page is on, or identify the computer that is requesting the .asp page.  Either way, the Request.ServerVariables might fit your needs.
Request.ServerVariables("REMOTE_ADDR")
or
Request.ServerVariables("REMOTE_HOST")
for the computer requesting the page or
Request.ServerVariables("SERVER_NAME")
for the server.  There are others as well.




More information about the thelist mailing list