Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Centurion Newsgroups: comp.lang.php Subject: Re: How to get client mac address in PHP ..? Date: Tue, 22 Nov 2011 14:08:14 +1100 Lines: 31 Message-ID: <9j0i0tFglU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net N1W0Hcmxvd5u+gWh8nRiNQFfrQXhar5ok9W4UHTL0YXsYE3uTi Cancel-Lock: sha1:BRR7aztTW7WxwYdehHvuEVqtYAw= User-Agent: Unison/2.1.6 Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:3850 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