address icon indicating copy to clipboard operation
address copied to clipboard

works on localhost but not when deployed.

Open thelionleo opened this issue 3 years ago • 3 comments

Correctly identifies mac address when on localhost. When deployed to amazon EC2 with cloudflare, it always have same mac address regardless of the device. is it because of cloudflare or does it only get the mac address of the server and not on the device accessing it?

thelionleo avatar Apr 10 '21 15:04 thelionleo

@thelionleo It returns the mac address of the host (Your Amazon EC2). There is no way to get the mac address of the client in a client-server configuration unless the client voluntarily provides it. When running on "localhost" your computer is the host.

nekuz0r avatar Apr 14 '21 07:04 nekuz0r

Correctly identifies mac address when on localhost. When deployed to amazon EC2 with cloudflare, it always have same mac address regardless of the device. is it because of cloudflare or does it only get the mac address of the server and not on the device accessing it?

Any Other Method to get IP and MAC address on production.Please Help.

satyam-quizophy avatar Sep 13 '23 07:09 satyam-quizophy

@thelionleo It returns the mac address of the host (Your Amazon EC2). There is no way to get the mac address of the client in a client-server configuration unless the client voluntarily provides it. When running on "localhost" your computer is the host.

I need client IP and MAC address . Any way to get both client detail. If possible the help plzzz.

satyam-quizophy avatar Sep 13 '23 07:09 satyam-quizophy