当前位置:网站首页>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 !!
边栏推荐
- Leetcode topic [array] - 119 Yang Hui triangle II
- Master Xuan joined hands with sunflower to remotely control enabling cloud rendering and GPU computing services
- Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease
- R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
- R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
- An error occurs when installing MySQL: could not create or access the registry key needed for the
- AutoCAD - what is the default lineweight for centerline drawing and CAD? Can I modify it?
- The slave i/o thread stops because master and slave have equal MySQL serv
- R语言使用order函数对dataframe数据进行排序、基于单个字段(变量)进行降序排序(DESCENDING)
- Characteristic colleges and universities, jointly build Netease Industrial College
猜你喜欢

保证接口数据安全的10种方案
![打家劫舍III[后序遍历与回溯+动态规划]](/img/9b/e9eeed138e46afdeed340bf2629ee1.png)
打家劫舍III[后序遍历与回溯+动态规划]
![Looting iii[post sequence traversal and backtracking + dynamic planning]](/img/9b/e9eeed138e46afdeed340bf2629ee1.png)
Looting iii[post sequence traversal and backtracking + dynamic planning]
时钟轮在 RPC 中的应用

Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller

五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长

CPU负载很低,loadavg很高处理方法

快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数

An error occurs when installing MySQL: could not create or access the registry key needed for the

zabbix 代理服务器 与 zabbix-snmp 监控
随机推荐
终于可以一行代码也不用改了!ShardingSphere 原生驱动问世
Based on butterfly species recognition
JDBC详解
[paper notes] transunet: transformers make strongencoders for medical image segmentation
Translation D28 (with AC code POJ 26:the nearest number)
Excel 中VBA脚本的简单应用
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图
Don't miss this underestimated movie because of controversy!
IC设计流程中需要使用到的文件
Computer network: sorting out common network interview questions (I)
usb host 驱动 - UVC 掉包
CPU负载很低,loadavg很高处理方法
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
接雨水问题解析
The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
应用使用Druid连接池经常性断链问题分析
Druid database connection pool details
Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
C # use Marshall to manually create unmanaged memory in the heap and use
About image reading and processing, etc