Why can't the server get the client MAC address, like the client IP?

前端 未结 9 2099
失恋的感觉
失恋的感觉 2021-01-02 00:28

From what I know, all the MAC addresses that the packet gone through are in the packet. This is because that each packet that goes in a certain path, should also be returned

9条回答
  •  佛祖请我去吃肉
    2021-01-02 00:59

    You can't - unless the client is local to your server. Provided it is, you can try arp-pinging it and getting the client's mac address that way.

提交回复
热议问题