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

前端 未结 9 2093
失恋的感觉
失恋的感觉 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 01:19

    There is no "router of the server". Packets may reach the server from many routers.

    There is no "router of the client". Packets may be sent from the client to many routers.

    The only devices which can see a MAC address are those on the same LAN - possibly only those on the same cable segment.

    BTW, the server cannot get the client IP address, either, if the client is on the other side of a proxy server.

提交回复
热议问题