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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find MAC Address of remote computer with ASP

Status
Not open for further replies.

Showtime99

Programmer
Sep 24, 2004
14
0
0
US
Hello,

I'm wondering if it is possible to retrieve a remote computers MAC Address with ASP, if so how do you do it?

Thanks in Advance
Showtime
 
IIS will give you the remote IP address but I dunno, might have to use client side script to fetch it and then put it in a hidden html <form>.

You can use this to see what all you can get from IIS:
Code:
<%@ Language=VBScript %>
<html>
	<head>
		<title>What's in the Request.ServerVariables collection?</title>
	</head>
	<body>
		<table border="1">
			<tr>
				<th>Item</th>
				<th>Value</th>
			</tr>
<%
Dim oItem
For Each oItem in Request.ServerVariables 
%>
			<tr>
				<td valign="top"><%= oItem %> &nbsp;</td>
				<td valign="top"><%= Request.ServerVariables(oItem) %> &nbsp;</td>
			</tr>
<%		
Next
%>
		</table>
	</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top