If server and client are on the same network, you will have to use ARP. This protocol is designed to get the MAC address to a given IP address.
如果客户端和服务器在同一网络,你将不得不使用ARP。本协议的目的是获取MAC地址到一个给定的IP地址。
As soon as there is something like a router between client and server, ARP will only reveal the MAC address of the router since this is the target for your Ethernet packets.
只要有一个客户端和服务器之间的路由器,ARP只会显示路由器的MAC地址,因为这是你的以太网包的目标。
If server and client are on the same network, you will have to use ARP.
如果客户端和服务器在同一网络,你将不得不使用ARP。
应用推荐