机器人如何从设备发现动态IP? [英] Android How to find Dynamic IP from device?

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

问题描述

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

如何得到这个IP的设备?

解决方案

如果您希望外部IP 本网站可以帮你,他们也有一个 XML API 希望这有助于。如果您需要本地IP(如果在WIFI)应该有东西在的Andr​​oid API

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

how to get this IP in device?

解决方案

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

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

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