JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

案例

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

 

步骤

1、电脑开启热点

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

2、查看 WIFI 密码

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

3、手机连接到此热点

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

4、Windows + R 快捷键调出DOS,CMD命令输入:"ipconfig" 以获取IPv4地址

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

5、在手机端访问这个网址

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

6、访问成功

JavaWeb - 手机如何访问电脑本地localhost网页以调试项目?

Ps:如无法访问 ,请关闭电脑防火墙。