首页 > 解决方案 > Find the IP of an internet host using its MAC adress only

问题描述

I would like to avoid VPN for permanent connection to a remote host, I would like to replace the static IP address with the MAC address, and using the MAC to find the IP.

标签: network-programmingip-addressvpnmac-address

解决方案


你不能。MAC 用于本地路由,而不是全局路由。远程网络上的 MAC 被远程端的网关隐藏。您甚至无法分辨出哪个网关正在执行此操作。甚至有可能 IP 地址后面没有 MAC 地址。例如拨号线路就是这种情况。后面会有一个电话号码。

这解释了为什么没有用于此的 API。


推荐阅读