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

模拟器运行可访问,真机就不行了? #2

Open
TangledHusky opened this issue Apr 10, 2018 · 1 comment
Open

模拟器运行可访问,真机就不行了? #2

TangledHusky opened this issue Apr 10, 2018 · 1 comment

Comments

@TangledHusky
Copy link

你好,我遇到这个问题,直接运行demo,在模拟器上启动后,在电脑浏览器输入地址,可以访问,但如果我用真机运行,同样在浏览器访问地址,就不行了,这是什么原因?

纠结了半天了,望楼主帮忙看一下

@TangledHusky
Copy link
Author

找到原因了,发现是pc和pad的ip不在一个局域网内,这种情况,必须保持pad和pc的IP前3段保持一致。
比如我的坑:
pc:192.168.123.111 pad:192.168.121.34 这种肯定不行
后来调整成一个网段下:比如 192.168.123.111 和 192.168.123.85 就可以了

可借鉴

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

1 participant