![]() Return substr($Content, strpos($Content,'\\')-20, 17) Ībove will basically execute the getmac program and parse its console-output, resulting to MAC-address of the server (and/or where ever PHP is installed and running on). Simplistically, each subnet-to-subnet hop of your packets involve the same sort of IP-to-MAC mapping for local routing in each subnet. However, when your packets have been routed on the local subnet to (and through) the gateway out to the "real" Internet, the originating MAC address is lost. Interfaces on the local net know how to map IP addresses to MAC addresses. In a local subnet, the MAC addresses are mapped to IP addresses through the ARP system. You can't find the client MAC address from a remote server. ![]() ![]() The MAC address (the low-level local network interface address) does not survive hops through IP routers. GetMacAddress.zip You can never get the MAC address of a user connected to your website, when a socket connection occurs between the destination (your websites server) and a source (clients computer) you can only get the source IP address, for the MAC address its never sent over the socket connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |