Skip to content

Mac Address #1

Description

@karthick03

Kindly change the code to make the session variables for mac address set using the client IP address. I have done using my own server IP. You can get the client IP address by using

$ip="CLIENT_IP";
$mac = shell_exec('arp '.$ip.' | awk '{print $4}'');

By the execution of above code, you can get the mac address of client in $mac variable which is used to set the session variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions