gpt4 book ai didi

android - Android如何通过IP地址查找无线网络设备的名称?

转载 作者:行者123 更新时间:2023-11-29 21:47:13 25 4
gpt4 key购买 nike

我有一个本地网络上的 IP 地址列表,我想知道哪个设备拥有每个地址,我怎么知道?

最佳答案

引用自 InetAddress 的文档:

Host Name Resolution
Host name-to-IP address resolution is accomplished through the use of a combination of local machine configuration information and network naming services such as the Domain Name System (DNS) and Network Information Service(NIS). The particular naming services(s) being used is by default the local machine configured one. For any host name, its corresponding IP address is returned.

Reverse name resolution means that for any IP address, the host associated with the IP address is returned.

The InetAddress class provides methods to resolve host names to their IP addresses and vice versa.

此方法将是 InetAddress.getHostName() .

关于android - Android如何通过IP地址查找无线网络设备的名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15459803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com