Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3850

Re: How to get client mac address in PHP ..?

From Centurion <me@nowhere.example>
Newsgroups comp.lang.php
Subject Re: How to get client mac address in PHP ..?
Date 2011-11-22 14:08 +1100
Message-ID <9j0i0tFglU1@mid.individual.net> (permalink)
References <d7a53c7e-d222-4df1-95e8-f9602e6a2b85@w29g2000pri.googlegroups.com>

Show all headers | View raw


On 2011-11-21 11:15:12 +0000, rrvasanth said:

> Dear friends...
> 
>  I need to know the MAC address of the connect clients, how can I do
> this in PHP?
> 
> Thanks
> Vasanth

30 seconds on Google turned up this:
http://forums.devarticles.com/general-programming-help-4/how-can-i-find-out-the-user-mac-address-1846.html 


Be aware, the connecting client's MAC (Ethernet) address will only be 
available *IF* that client is on the same broadcast domain as your 
PHP/Web server.  If they are on a different broadcast domain, you get 
nothing.

Broadcast domain is best thought of as LAN/VLAN.  In short, the moment 
the packet pops up to layer 3 (ie, router/layer 3 switch) between 
server and client, you're boned.

Suggest you get a good book on the OSI model and read up on Ethernet, 
IP and the layer 4 family (UDP/TCP/etc).
-- 
James

Let a fool hold his tongue and he will pass for a sage.
                -- Publilius Syrus

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to get client mac address in PHP ..? rrvasanth <vasanthaltimate@gmail.com> - 2011-11-21 03:15 -0800
  Re: How to get client mac address in PHP ..? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-21 11:36 +0000
  Re: How to get client mac address in PHP ..? Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-21 07:16 -0500
  Re: How to get client mac address in PHP ..? Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-21 16:18 +0000
    Re: How to get client mac address in PHP ..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-21 17:43 +0100
      Re: How to get client mac address in PHP ..? Doug Miller <doug_at_milmacdotcom@example.com> - 2011-11-21 15:17 -0500
        Re: How to get client mac address in PHP ..? Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-21 21:54 +0000
          Re: How to get client mac address in PHP ..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-22 01:20 +0100
            Re: How to get client mac address in PHP ..? Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-21 22:14 -0500
            Re: How to get client mac address in PHP ..? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 09:28 +0000
              Re: How to get client mac address in PHP ..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-22 13:38 +0100
  Re: How to get client mac address in PHP ..? Centurion <me@nowhere.example> - 2011-11-22 14:08 +1100

csiph-web