在android中获取网关IP地址 [英] Get gateway ip address in android
本文介绍了在android中获取网关IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取网关IP详细信息,有使用wifimanager的选项但是。如果没有wify如何在使用usb tethering连接时在android设备中找到网关,dns和其他细节。
How to get gateway IP details , There is option using wifimanager but. If there is no wify how to find gateway,dns and other details in android device when connected using usb tethering.
推荐答案
我在android 2.3.4上使用cyanogenmod 7.2,然后只需打开终端模拟器并键入:
I'm using cyanogenmod 7.2 on android 2.3.4, then just open terminal emulator and type:
$ ip addr show
$ ip route show
这篇关于在android中获取网关IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文