Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取ip地址不严谨 #5

Closed
mo2phone opened this issue Jul 1, 2019 · 1 comment
Closed

获取ip地址不严谨 #5

mo2phone opened this issue Jul 1, 2019 · 1 comment

Comments

@mo2phone
Copy link

mo2phone commented Jul 1, 2019

现在的方法只能获取手机和电脑都通过wifi连接下,实际上是无法获取到用户手机的真实IP地址的,

另外一种情况是手机开热点,电脑连接,这时候手机和电脑也在同一个局域网;

adb -s **** shell ifconfig

可以考虑通过,获取wlan swlan rmnet_data下的ip地址;
wlan对于手机和电脑普通wifi连接;
swlan,手机开热点给电脑连接;
rmnet_data手机的真实ip地址;

也不可以不用考虑的这么细致,这个只是个人看法;

@barry-ran
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants