Android device ( Internet Connected )
|
(Wi-Fi Hot-spot)
|
|
Computer ( NodeJs Server started )
NodeJs 服务器仅以私有 IP 启动...
如何以公共 IP启动 NodeJs 服务器?
电脑中启动的NodeJs服务器:(未列出公网IP)
C:\Users\ASUS>http-server .
Starting up http-server, serving .
Available on:
http://192.168.42.74:8080
http://192.168.137.1:8080
http://127.0.0.1:8080
Hit CTRL-C to stop the server
[但是,如果我在我的 Android 设备中启动服务器(使用 Termux),我将获得公共 IP... ]