Android 如何从设备中找到动态 IP? [英] Android How to find Dynamic IP from device?

查看:24
本文介绍了Android 如何从设备中找到动态 IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有办法找到 DHCP 地址和主机地址.如何找到分配给我的设备的动态 IP 地址.我可以从 http://www.ip2location.com/default.aspx 获取地址

I have method to find the DHCP address and host address. how to find the dynamic ip address assigned to my device. I am able get the address from http://www.ip2location.com/default.aspx

如何在设备中获取这个IP?

how to get this IP in device?

推荐答案

如果你想要外网IP 这个网站 可以帮助你,他们还有一个 XML API 希望这会有所帮助.如果您需要本地 IP(如果在 WIFI 上),Android api

if you want the external IP this website can help you, they also have an XML API hope this helps. If you need the local IP (if on WIFI) there should be something in the Android api

这篇关于Android 如何从设备中找到动态 IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆