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

前端 未结 9 2036
失恋的感觉
失恋的感觉 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:15

    The simple difference is: IP addresses are end to end adresses (in an IP packet of course), whereas MAC adresses are only used hop by hop. Additionally the underlying MAC protocol could change on every hop, without knowledge of the client, therefore the client may not even understand all the adresses along the way of its IP packet.

提交回复
热议问题