如何从Android平板电脑访问我的127.0.0.1:8000 [英] how to access my 127.0.0.1:8000 from android tablet
问题描述
我正在django中开发一个网页(在装有Windows 7的PC上),现在我需要在平板电脑中测试某些页面.如果我可以从android平板电脑访问Windows中的本地主机,突然想到了.那可能吗?我在家中的两个设备都处于相同的wifi连接中.
I am developing a webpage in django (on my pc with windows 7) and now i need to test some pages in tablet pcs. suddenly the thought came if i can have an access to my localhost in windows from android tablet. is that possible? I am in the same wifi connection in both devices at home.
我在stackoverflow和其他地方阅读了很多与此问题有关的问题和答案,但是没有一个给我一些具体的解决方案.
i read a lot questions and answers regarding this issue in stackoverflow and other places, but none of them gave me some concrete solutions.
我在Android 4.0.4中使用了三星Tab 2 10.1.
I have samsung tab 2 10.1 with android 4.0.4.
感谢任何帮助,谢谢
推荐答案
您可以使用Windows命令提示符中的 ipconfig
命令找出PC的IP地址.由于您提到它们是通过WiFi连接的,因此请查找无线适配器的IP地址.
You can find out what the ip address of your PC is with the ipconfig
command in a Windows command prompt. Since you mentioned them being connected over WiFi look for the IP address of the wireless adapter.
由于平板电脑也位于同一WiFi网络中,因此您只需在平板电脑的浏览器中键入该地址,并附加:8000即可,它会拉出页面.
Since the tablet is also in this same WiFi network, you can just type that address into your tablet's browser, with the :8000 appended to it and it should pull up the page.
这篇关于如何从Android平板电脑访问我的127.0.0.1:8000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!