473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ASP .NET and client's MAC address

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
Feb 21 '06 #1
13 4005
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" <po*****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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

Feb 21 '06 #2
Wouldn't you be able to get the mac address using javascript on the client
side?

"Bruce Barker" <br******************@safeco.com> wrote in message
news:OO**************@TK2MSFTNGP12.phx.gbl...
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" <po*****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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


Feb 21 '06 #3
> Wouldn't you be able to get the mac address using javascript on the client
side?
Nope.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
To a tea you esteem
a hurting back as a wallet.
"Carlos Albert" <nospam@noplace> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl... Wouldn't you be able to get the mac address using javascript on the client
side?

"Bruce Barker" <br******************@safeco.com> wrote in message
news:OO**************@TK2MSFTNGP12.phx.gbl...
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" <po*****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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



Feb 21 '06 #4
http://www.dotnet247.com/247referenc.../18/91898.aspx

http://pinvoke.net/default.aspx/iphl...ptersInfo.html

http://www.codeproject.com/csharp/Ho...in_Network.asp

Please correct your computer's time/date.
You are future posting by over 18 hours.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"James" <po*****@gmail.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
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

Feb 21 '06 #5

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...

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.

Feb 21 '06 #6
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"John" <pl*@dont.spam.me.com> wrote in message news:Ec********************@news20.bellglobal.com. ..
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...

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.

Feb 21 '06 #7
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
Feb 21 '06 #8
"Carlos Albert" <nospam@noplace> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
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...
Feb 21 '06 #9
"D. Yates" <fo****@hotmail.com> wrote in message
news:OJ*************@TK2MSFTNGP09.phx.gbl...
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... :-)
Feb 21 '06 #10
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
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
http://www.dotnet247.com/247referenc.../18/91898.aspx

http://pinvoke.net/default.aspx/iphl...ptersInfo.html

http://www.codeproject.com/csharp/Ho...in_Network.asp

Please correct your computer's time/date.
You are future posting by over 18 hours.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"James" <po*****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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


Feb 22 '06 #11
java applets run in a sandbox, so active/x is the only option.

-- bruce (sqlwork.com)

"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:Of**************@TK2MSFTNGP12.phx.gbl...
"Carlos Albert" <nospam@noplace> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
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...

Feb 22 '06 #12
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".

"James" <po*****@gmail.com> ¼¶¼g©ó¶l¥ó·s»D:%2***************@tk2msftngp13.phx. gbl...
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
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
http://www.dotnet247.com/247referenc.../18/91898.aspx

http://pinvoke.net/default.aspx/iphl...ptersInfo.html

http://www.codeproject.com/csharp/Ho...in_Network.asp

Please correct your computer's time/date.
You are future posting by over 18 hours.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"James" <po*****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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



Feb 22 '06 #13
Hi,

D. Yates wrote:
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/archi...11/479782.aspx

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

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 22 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JezB | last post by:
Any way I can get at a unique "Client ID" within server code ? I'm writing some auditing and I want to record which particular client machine initiated a request, for example. I imagine in an...
4
by: Andy | last post by:
Hi all, In a recent intranet project, I want to limit the access to my mobile asp.net appl only to a set of authorized MAC addresses by determining client's MAC address. Is there any way to...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
4
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try...
13
by: Sandeep Singh | last post by:
I am making socket client application in C# how can i get ip address of client who has connected to server
14
by: Ankit Aneja | last post by:
The code of classes given below is for server to which clients connect i want to get ip address of client which has connected pls help how can i get //listen class public class listen {
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
3
by: RFD | last post by:
I've been slaving at this problem for over a week, and would appreciate some help from you kind folks. Basic Problem: I have made a server program and a client program. When I try to use the...
15
by: Mike | last post by:
Hi ASP Gurus, Please help me solving my problem. I am trying to get the clients IP address but I am not able to do it successfully. I have tried: Request.ServerVariables("http_user_agent")...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.