- 双击http-server.exe
- 浏览器访问:http://localhost:8000/index.html?ip=192.168.28.54
- ip改为你局域网手机的ip
- 下载 Releases · TheWaWaR/simple-http-server
- 启动运行程序
- 浏览器访问:http://localhost:8000/index.html?ip=192.168.28.54
- ip改为你局域网手机的ip
废弃方法,程序员已安装nodejs 的可以采用
- 安装 nodejs
- 安装环境 npm i -g anywhere
- 在当前目录运行 anywhere ,会启动http本地目录,然后网址方式运行。
- Double-click
http-server.exe
. - In your browser, visit: http://localhost:8000/index.html?ip=192.168.28.54
- Change 'ip' to your local network smartphone's IP.
- Download from Releases · TheWaWaR/simple-http-server.
- Start the application.
- In your browser, visit: http://localhost:8000/index.html?ip=192.168.28.54
- Change 'ip' to your local network smartphone's IP.
Deprecated method, for programmers who have installed nodejs:
- Install nodejs.
- Set up environment with
npm i -g anywhere
. - Run
anywhere
in the current directory to start a local HTTP directory, then access it via the provided URL.