创建本地主机并将服务器公开到互联网?

Create A localhost & expose the server to internet?

无需 Web 服务(ngrok..etc)即可通过互联网连接本地主机,步骤简单。

实际上它可以通过简单的步骤:

Create Static IP Pv4 (Allowing Coming Request Over Internet). will be your private static ip

Adding Ports which U Wanna To connect with, in your firewall. add both (TCP/UDP)

Need Web Server (Xamp,Etc...). good tutorial

In Router Gateway login, then Add Ports u want (example 80 [TCP+UDP]) in port mapping, u maybe will need too enable DMZ (in Advanced Option) and add the host address which have your local ip / or ur machine which host the server.

in the end try to navigate your public server Example : http://...:port/dashboard/

如果您遇到错误,请不要犹豫,这将有助于改进 Post.!