REMOTE_ADDR is about the only thing you can get..
Request.ServerVariables("R
Main Topics
Browse All TopicsWhen a person logins in I need to be able to get the machineID of the computer and store it in the database for that person.
How can I do that?
Please help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
both answers above are good answers - you cannot get the
mac (unique adapter id), but you can get the i address -
which will change if the user is using a modem.
I am not sure of what you're doing, but limiting users to
a specific machine is not teh ebst way to go. Try
implementing a login system and use cookies so users can
be auto-logged in.
Thanks for all the answers.
We have an web site for a customer and this website needs to be accessed by certain people and in certain locations only. Yes, the customer agreed that we get their machine ID or MAC we call it.
I tried using Request.ServerVariables("R
Set wshNetwork = CreateObject("WScript.Netw
strMachine = wshNetwork.ComputerName
document.form.hidden_field
I am getting the webserver's computer name and not the client's.
When the user logs in with their username, password and their designated location I want to be able to grab their unique machine name and store it in the database and for reporting purposes we would like to see if there are any people trying to access the website at a location that is not designated.
So we cannot get the HOSTID through ASP?
Let me know your comments!
Thanks in advance.
The
Set wshNetwork = CreateObject("WScript.Netw
strMachine = wshNetwork.ComputerName
code has to be run client-side and the security settings in the users browser may have to be changed. i.e.
<html>
<head></head>
<body>
<script type="text/vbscript">
Set wshNetwork = CreateObject("WScript.Netw
strMachine = wshNetwork.ComputerName
</script>
</body>
</html>
etc, etc
> I am getting the webserver's computer name and not the client's.
that's why you're supposed to execute this on the client not on the server... anyway... the name of the computer isn't enough...
try this on the client:
<script language="VBScript">
window.alert("please allow the next action, so we can check you...")
on error resume next
Set wshNetwork = CreateObject("WScript.Netw
strLogin = wshNetwork.UserDomain & "/" & wshNetwork.ComputerName & "/" & wshNetwork.UserName
if err then
theForm.loginstr.value = "error";
else
theForm.loginstr.value = strLogin;
end if
theForm.submit()
</script>
<form action="login.asp" method="post" name=theForm>
<input name=loginstr type=hidden>
</form>
but watch out... this can be faked... an user could create his own form and type in whatever he wants...
to make this more secure, you could check the referer in login.asp and make sure the form is coming from the right server...
but even then i can imagine a method to fake this...
try it... if that's ok for you, you can try to create a WshShell object and then call "ipconfig /all" to get the MAC...
if the other computers are all in the LAN with the server then checking the IP may be sufficient, as all the computers have IPs from a given range...
ASPGuru
ASPGuru
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept aspguru's comment as answer
Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
mrGreen
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: akylmanPosted on 2003-04-23 at 14:08:23ID: 8383517
do you mean the IP address? or the MAC address? or what?