I mean remotely using asp.net.
Rafael
You mean, Remotely? That would be very difficult. Otherwise one of the
easiest ways is to open a command prompt and type "ipconfig /all"
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Rafael Tejera" wrote:
> How I can obtain the MAC address of the customers pc.
>
> Somebody has an example?
>
> I'm using C#.NET 2003
>
>
> Rafael
OK,
You could probably do it remotely using WMI assuming you had the requisite
Administrator privileges on the remote machine, but if you are attempting to
do this from a web page loaded into somebody's browser, forget it - browser
security restrictions prevent access to the client machine, filesystem, etc.
Why do you need to get a remote user's MAC Adress anyway? If it's for some
sort of identification or license validation, I'd recommend against it. It's
very easy to change the MAC address on your machine - there are a number of
freeware utilities for doing this. In other words, what's the end goal here?
Perhaps there is a workaround.
Peter

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> I mean remotely using asp.net.
>
[quoted text clipped - 20 lines]
> >
> > Rafael
Rafael Tejera - 30 Aug 2006 14:07 GMT
I need to validate the users to know in which sites they are. I had put that they can select the sites, and its been a problem, they always are making mistakes and I'm searching a way to make the decision by the application.
It is a C# asp.net application.
Other problem is that the sites connect to a internet and from there they connect to the application. These sites don't have an static ip address.
Rafael
OK,
You could probably do it remotely using WMI assuming you had the requisite
Administrator privileges on the remote machine, but if you are attempting to
do this from a web page loaded into somebody's browser, forget it - browser
security restrictions prevent access to the client machine, filesystem, etc.
Why do you need to get a remote user's MAC Adress anyway? If it's for some
sort of identification or license validation, I'd recommend against it. It's
very easy to change the MAC address on your machine - there are a number of
freeware utilities for doing this. In other words, what's the end goal here?
Perhaps there is a workaround.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Rafael Tejera" wrote:
> I mean remotely using asp.net.
>
>
> Rafael
>
> "Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in message news:E1B2689E-7993-4727-BB47-8F6F667F94D6@microsoft.com...
> You mean, Remotely? That would be very difficult. Otherwise one of the
> easiest ways is to open a command prompt and type "ipconfig /all"
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Rafael Tejera" wrote:
>
> > How I can obtain the MAC address of the customers pc.
> >
> > Somebody has an example?
> >
> > I'm using C#.NET 2003
> >
> >
> > Rafael