ASP .NET and client's MAC address

B

Bruce Barker

you can only get the mac address if it a local lan and no proxy server is
between your website and the client box. its not passed to the asp.net
worker process, so you will have to hookup a network tracer (use the
ipaddress) or if you use dhcp, ask the server of the mac address for the
given ip[address.

if the client is behind a proxy, htne you would have to install an active/x
componet on the client to get the mac address.

-- bruce (sqlwork.com)
 
C

Carlos Albert

Wouldn't you be able to get the mac address using javascript on the client
side?

Bruce Barker said:
you can only get the mac address if it a local lan and no proxy server is
between your website and the client box. its not passed to the asp.net
worker process, so you will have to hookup a network tracer (use the
ipaddress) or if you use dhcp, ask the server of the mac address for the
given ip[address.

if the client is behind a proxy, htne you would have to install an
active/x componet on the client to get the mac address.

-- bruce (sqlwork.com)

James said:
Hi,
I'm new to ASP .NET, working on a school project, which i need to find
out the client's MAC address. However in my search on the web, i have not
find any method available, and some mention that it is not possible.

I hope someone will be able to help me out about this!

Thanks!

Regards
 
K

Kevin Spencer

Wouldn't you be able to get the mac address using javascript on the client

Nope.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
To a tea you esteem
a hurting back as a wallet.


Carlos Albert said:
Wouldn't you be able to get the mac address using javascript on the client
side?

Bruce Barker said:
you can only get the mac address if it a local lan and no proxy server is
between your website and the client box. its not passed to the asp.net
worker process, so you will have to hookup a network tracer (use the
ipaddress) or if you use dhcp, ask the server of the mac address for the
given ip[address.

if the client is behind a proxy, htne you would have to install an
active/x componet on the client to get the mac address.

-- bruce (sqlwork.com)

James said:
Hi,
I'm new to ASP .NET, working on a school project, which i need to find
out the client's MAC address. However in my search on the web, i have
not find any method available, and some mention that it is not possible.

I hope someone will be able to help me out about this!

Thanks!

Regards
 
J

John

Juan T. Llibre said:
Please correct your computer's time/date.
You are future posting by over 18 hours.

This is especially agrevating, but you have to wonder why the NNTP server
doesn't set the time to the minimum time; now or the specified time. ... or
reject it all together.

sorry for the rant ... it's a thorn in my side.
 
J

Juan T. Llibre

re:
you have to wonder why the NNTP server doesn't set the time to the minimum time; now or the
specified time.

If "server time" were to be used, that problem wouldn't exist.

The problem, of course, would be threading posts by posts'
time so that *clients* can make sense of the threading order.

If all posts were to be dated with Redmond ( Microsoft ) time,
there'd be all sorts of complaints about how Microsoft is self-centric.

re:
... or reject it all together.

I'm afraid that would bring on all sorts of "Micro$oft $uck$" messages.

All in all, it'd be a lose-lose proposition if the post time rules were to be changed.
 
D

D. Yates

Acually, I would go with ZULU time, which is Greenwich Mean Time (GMT). This
time is also known as Universal Time (UTC). Microsoft couldn't be accused
of anything at that point and the could appeand a Z after the time to
indicate that you are looking at ZULU time. Who uses this? The military,
the National Science Foundation (http://atm.geo.nsf.gov/ieis/time.html), and
lot of very big agency.

Thought I would menition it just in case some at Microsoft is reading this.


Dave
 
M

Mark Rae

Wouldn't you be able to get the mac address using javascript on the client
side?

Not *just* with JavaScript, no... You'd need to use an ActiveX control or a
Java applet, assuming you could bypass all the security issues that that
would entail...
 
M

Mark Rae

Acually, I would go with ZULU time, which is Greenwich Mean Time (GMT).
This time is also known as Universal Time (UTC). Microsoft couldn't be
accused of anything at that point and the could appeand a Z after the time
to indicate that you are looking at ZULU time. Who uses this? The
military, the National Science Foundation
(http://atm.geo.nsf.gov/ieis/time.html), and lot of very big agency.

Thought I would menition it just in case some at Microsoft is reading
this.

I couldn't agree more! Of course, being a Brit, I realise (not realize) I'd
no doubt get accused of having a "nose-in-the-air" attitude... :)
 
J

James

Hi,

Sorry about my computer's date and time, there was a confusing eariler on.
It appears to be the right time here but on a wrong day. But it's correct
sorry for the future post.

and regarding the links, will the same apply for a mobile device, for
example a pockectPC?

Regards
 
B

Bruce Barker

java applets run in a sandbox, so active/x is the only option.

-- bruce (sqlwork.com)
 
L

Lau Lei Cheong

The rule is: MAC address will not be sent if it's not on LAN.

But if you're sure all your clients will be on the same subnet of your web
server, you may try SendARP() in "IPHLPAPI.dll".
 
J

James

Hi,
I'm new to ASP .NET, working on a school project, which i need to find out
the client's MAC address. However in my search on the web, i have not find
any method available, and some mention that it is not possible.

I hope someone will be able to help me out about this!

Thanks!

Regards
 
L

Laurent Bugnion

Hi,

D. Yates said:
Acually, I would go with ZULU time, which is Greenwich Mean Time (GMT). This
time is also known as Universal Time (UTC). Microsoft couldn't be accused
of anything at that point and the could appeand a Z after the time to
indicate that you are looking at ZULU time. Who uses this? The military,
the National Science Foundation (http://atm.geo.nsf.gov/ieis/time.html), and
lot of very big agency.

Thought I would menition it just in case some at Microsoft is reading this.


Dave

Seems that they read you before you even wrote this ;-)

See
http://blogs.msdn.com/mattavis/archive/2005/10/11/479782.aspx

Specifically:
DateTime.UtcNow = "2004-10-13T22:16:11.5427356Z" (for example) in 2.0

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top