Re: Get Mac Address
| From: | Rory Browne | Date: | Mon, 10 Oct 2005 03:29:12 +0000 |
| Subject: | Re: Get Mac Address | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223800@lists.php.net to get a copy of this message | ||
On 10/10/05, M. Sokolewicz <tularis@php.net> wrote:
> That will give you the *local* mac address, not that of the user
> visiting your page. The problem is the fact that the mac address is not
> sent as part of the REQUEST. As such it's not possible for PHP to find
> out what it is. So, unfortunately, no. (Though it's a very common
> question on this list)
>
Normally I would agree, but he said he was running a local intranet server.
arp will work, if you're on the same network as the computer you are
querying, but if not, then arp will give you the mac address of the
router.
arp can be used to get the mac of a certain machine as well(identified
by its IP), as well as listing out the cache of machines that have
recently connected.
> - tul
>
> Rory Browne wrote:
> > On unix
> > man arp
> >
> > on windows
> > arp/h
> > arp/help
> > arp/?
> >
> > sorry for short and sweet resp, but I'm falling asleep.
> >
> > On 10/9/05, Ben Sagal <bmsagal@gmail.com> wrote:
> >
> >>I have a local intranet server, running apache1.3+php4. Is it
> >>possible to get the mac address of computes which access on of my php
> >>pages?
> >>
> >>Ben
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >>
>
>