当前位置:网站首页>How to access localhost:8000 by mobile phone
How to access localhost:8000 by mobile phone
2022-07-06 19:24:00 【changyana】
One function of local web page development on the computer is to scan the code and view it on wechat , However, after the QR code is generated, the mobile phone scanning code cannot access the computer localhost The URL of .
My first thought is : Because I can also develop small programs , I plan to add a code scanning page jump function to the wechat developer tool , But finally after verification , My applet is a human , Unable to jump to the Internet , So this method will not work .
Idea 2 : The mobile scanning page cannot be opened , However, you can see that the website you want to visit is localhost:8000/xxxx/xxx In this way , So find out how to access your mobile phone PC Terminal localhost, Now the process is recorded as follows :
One 、 Turn off firewall
Firewalls are security settings , Sometimes it will block the network connection of some external devices , So close . Search the firewall directly in the computer and open , Then turn off the firewalls of those networks . If there is 360 Security guards or something , Turn those off, too .
Two 、 Connect wifi
Computers and mobile phones should use the same LAN , So make sure that the phone and the computer are connected to the same wifi.( It is said on the Internet that using mobile hotspot is not allowed , It must be used. wifi, I haven't tried specific mobile phone hotspots , Or use it wifi Be sure )
3、 ... and 、 Set up ip
Mobile phones are actually based on computers ip visiting , What we need to check is the computer ip Corresponding page , Not visited localhost:8000 The page of . see ip The process is as follows :
win+R, Input cmd
Enter the following command :ipconfig/all
, And then go back , You can see the computer ip
Then my page automatically generates a link QR code according to the current web address ,
So we need to put the network address localhost Change to computer ip, Put... Directly on the development page localhost I. change , Just press enter to reload the page .
Then scan the code with your mobile phone to access .( Scanning code of mobile phone is a function I developed , If you directly visit the website developed by the computer page from the mobile browser, you can also visit .)
Be accomplished !
Remember to restart the firewall after the test . Protect computer security !!
边栏推荐
- Characteristic colleges and universities, jointly build Netease Industrial College
- 谷粒商城--分布式高级篇P129~P339(完结)
- [pytorch] yolov5 train your own data set
- 冒烟测试怎么做
- php+redis实现超时取消订单功能
- MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
- Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
- Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
- R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置add参数为不同水平点状条带图添加箱图
- 学习探索-无缝轮播图
猜你喜欢
Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
五金机电行业智能供应链管理系统解决方案:数智化供应链为传统产业“造新血”
RT-Thread 组件 FinSH 使用时遇到的问题
Multithreading Basics: basic concepts of threads and creation of threads
C language daily practice - day 22: Zero foundation learning dynamic planning
第五期个人能力认证考核通过名单公布
Black Horse - - Redis Chapter
How to type multiple spaces when editing CSDN articles
In depth analysis, Android interview real problem analysis is popular all over the network
随机推荐
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置add参数为不同水平点状条带图添加箱图
LeetCode_双指针_中等_61. 旋转链表
今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
The nearest library of Qinglong panel
Simple application of VBA script in Excel
How to improve website weight
Problems encountered in using RT thread component fish
How word displays modification traces
R语言ggplot2可视化:使用ggpubr包的ggdotplot函数可视化点阵图(dot plot)、设置palette参数设置不同水平点阵图数据点和箱图的颜色
史上超级详细,想找工作的你还不看这份资料就晚了
Low CPU load and high loadavg processing method
Mysql Information Schema 学习(二)--Innodb表
R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
受益匪浅,安卓面试问题
Simple understanding of MySQL database
五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长
Yutai micro rushes to the scientific innovation board: Huawei and Xiaomi fund are shareholders to raise 1.3 billion
Characteristic colleges and universities, jointly build Netease Industrial College