2

Is there a fairly simple way to acquire a client's MAC address from an ASP.Net web application.

I'm 4.0 all the way, and I'm using Visual Studio 2010.

Edits

LISTEN! Please do not close my issue! The one that jmccarthy linked to is not the same. My requests are NOT coming from a web browser. I should have been more clear.

2

3 Answers 3

1

If your requests aren't coming from a web browser, then you have to modify the client to send its MAC address. If you don't have control of the client, you're simply not getting the MAC from it.

Sign up to request clarification or add additional context in comments.

Comments

0

I don't think there is any cross-browser method of doing this short of using some sort of plugin (ActiveX).

Comments

0

It's not in general possible nor meaningful, since the frames have probably passed though many routers and network equipments before getting to your server.

If you still want to do it from the server, without adding anything to your clients, here are some links with C# code to determine the MAC address from an IP Adress (you could then use ASP.NET Request variable):

Get Mac Address

get MAC Address of host

Be aware that this could cause heavy performance problem if you do this on standard ASP.NET request thread. You might want to do it in someasynchronous fashion.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.