当前位置:网站首页>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 !!
边栏推荐
- Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
- Precautions for binding shortcut keys of QPushButton
- How to improve website weight
- Zero foundation entry polardb-x: build a highly available system and link the big data screen
- 10 schemes to ensure interface data security
- zabbix 代理服务器 与 zabbix-snmp 监控
- Mysql Information Schema 学习(二)--Innodb表
- Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
- 通俗的讲解,带你入门协程
- Translation D28 (with AC code POJ 26:the nearest number)
猜你喜欢
![[translation] a GPU approach to particle physics](/img/07/57036c925155cab36678c696e89440.jpg)
[translation] a GPU approach to particle physics

The list of people who passed the fifth phase of personal ability certification assessment was published

五金机电行业智能供应链管理系统解决方案:数智化供应链为传统产业“造新血”

Synchronous development of business and application: strategic suggestions for application modernization

Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
![[paper notes] transunet: transformers make strongencoders for medical image segmentation](/img/21/3d4710024248b62495e2681ebd1bc4.png)
[paper notes] transunet: transformers make strongencoders for medical image segmentation

CCNP Part 11 BGP (III) (essence)
深入分析,Android面试真题解析火爆全网

spark基础-scala

Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
随机推荐
【pytorch】yolov5 训练自己的数据集
史上超级详细,想找工作的你还不看这份资料就晚了
AutoCAD - what is the default lineweight for centerline drawing and CAD? Can I modify it?
Precautions for binding shortcut keys of QPushButton
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
The nearest library of Qinglong panel
数学知识——高斯消元(初等行变换解方程组)代码实现
Interface test tool - postman
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Don't miss this underestimated movie because of controversy!
pytorch常见损失函数
助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
test about BinaryTree
R语言使用order函数对dataframe数据进行排序、基于单个字段(变量)进行降序排序(DESCENDING)
Characteristic colleges and universities, jointly build Netease Industrial College
Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
Use of deg2rad and rad2deg functions in MATLAB