network-programming - 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.
解决方案
你不能。MAC 用于本地路由,而不是全局路由。远程网络上的 MAC 被远程端的网关隐藏。您甚至无法分辨出哪个网关正在执行此操作。甚至有可能 IP 地址后面没有 MAC 地址。例如拨号线路就是这种情况。后面会有一个电话号码。
这解释了为什么没有用于此的 API。
推荐阅读
- time-complexity - for循环是否必须在循环内有一个执行代码才能被视为o(n)?
- python - BeautifulSoup HTML 提取文本
- java - IntelliJ IDEA:将 IDE 构建/运行操作委托给 Maven:如何运行单个测试类/案例?
- java - 不是所有的对象都已经序列化了吗?
- java - 如何将对象从注册表单传输到控制器以写入数据库并分配角色?
- typescript - Typescript 嵌入的泛型类型未正确遵循泛型参数
- python - 迭代字符串名称本身可能吗?
- c - 内部分段错误但不确定如何修复
- html - Flexbox:到达页面底部时如何将项目包装在 flexbox 内?
- c++ - C ++ 17如何将不可复制的lambda存储到类成员中