skip to Main Content

Is there a way to display the MAC address of a computer using PHP or JavaScript?

I have not tried anything yet but I am still researching on a way to do that.

I do hope that you can help me or give me an idea on how can I get the MAC Address.

2

Answers


  1. Normally it is not possible for security issue. Because MAC address is your machine address and your server can not able to access your machine. The MAC address is not broadcast beyond the LAN the device is connected to – it never leaves the router and passes to the server.

    Login or Signup to reply.
  2. Displaying the MAC address of a user’s computer in a web page is not directly possible using JavaScript or PHP. The MAC address is a hardware-level address that is not directly accessible through web browsers due to security and privacy considerations.

    However, you can achieve this in a local network environment using other technologies, such as Java applets (though Java applets are no longer supported in modern browsers due to security concerns) or using native applications. Keep in mind that accessing MAC addresses for tracking or identification purposes may raise privacy and security concerns.

    If you’re looking to identify users on a web page, you should consider using other methods, such as cookies, session identifiers, or IP addresses.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search