We usually visit the web site is provided by a public IP server, if you want to do your own web site also need to have an own server (of course, can also use static websites, making this do next time can say), but in simple terms, that is, a computer server, the server can own computer do? The answer is yes, here is a recommended free Intranet penetration artifact ngrok, about what is Intranet penetration see encyclopedia explanation:

Intranet penetration, namely NAT penetration, is a term used for network connection. When a computer is in a LAN, the Internet and Intranet computer nodes need to be connected for communication. Port mapping enables the Internet computer to locate the computer on the Intranet, improving the download speed.Copy the code

In simple terms, ngrok can generate an external network address, and then find the local server can access their own computer files, specific how to use ngrok Intranet penetration is as follows, very simple.

Setting up a local Server

Create a new file called index. HTML on your computer and write whatever you want. Then set up a simple server that can access the file via IP and port.

For example, if I have PHP installed on my computer, I can execute a single command.

php -S localhost:4000
Copy the code

Then open localhost:4000 browser to access the local file index.html, which is a personal PPT introduction of Jay Chou, the space bar to turn the page, and the usual use of PPT.

Python is the same.

Lambda python - m HTTP server4000
Serving HTTP on 0.0. 0. 0 port 8000 (http:/ / 0.0.0.0:4000 /)...
Copy the code

If you are not familiar with the command line, install the software NGINX www.nginx.com/ and start directly.

ngrok

The official website of ngrok is dashboard.ngrok.com/get-started

ngrok authtoken 1THs9sajgDwQV1RS5ER6pc6nHo2_7gVJGSiAzT91YpAiS7f54

# ngrok authtoken 1THs9sajgDwQV1RS5ER6pc6nHo2_7gVJGSiAzT91YpAiS7f54 Authtoken saved to configuration file: C:\Users\xx/.ngrok2/ngrok.yml ngrok by @inconshreveable (Ctrl+C to quit) Session Status online Account (Plan: Free) Version 2.3.35 Region United States (US) Web Interface http://127.0.0.1:4040 Forwarding http://7ef9b347.ngrok.io -> http://localhost:4000 Forwarding https://7ef9b347.ngrok.io -> http://localhost:4000 Connections ttl opn rt1 rt5 p50 P90 00 0.00 0.00 0.00Copy the code

If you open http://7ef9b347.ngrok.io, you can open the index.html file on your computer. You can also view the accessed file on the command line.

The Web Interface on the command line is a built-in management panel for Ngrok to display all incoming requests and returned data from Ngrok. Now visit http://127.0.0.1:4040.

Now you have a domain name http://7ef9b347.ngrok.io, sent to others can also visit, but your computer can not shut down, is not very simple, but this foreign server is a little slow, you can consider the domestic ngrok.cc.

ngrok.cc

Sign up for www.ngrok.cc/user.html via email. For details, see www.ngrok.cc/_book/. This is also free.

Sunny-ngrok startup tool.bat

susheng.free.idcfengye.com

Nat.cdjxt.net/#section-ho… This is similar to ngrok.cc, download the client first, see nat.cdjxt.net/#section-pr… And then register directly with your email

client_windows_amd64.exe -s jp.cdjxt.net -p 5993 -k 9e9ef6b89342454f9c554d83a2a94b8e -ssl true

m30059.jp.cdjxt.net/#/start

If you’re having trouble installing a client, you can just use the serveo

serveo

Git bash serveo.net/

ssh -R 80:localhost:4000 serveo.net
Forwarding HTTP traffic from https://habeo.serveo.net
Press g to start a GUI session and ctrl-c to quit.
Copy the code

habeo.serveo.net

Now have network through you go out in the outside also can access to the file on your computer (of course can’t shut down your computer), if it’s too Intranet through trouble, also is not stable, suggest to buy a their own server, tencent cloud under the recommended here, as long as a year 88 cloud.tencent.com/act/double1… Yesterday, I just bought one on Double Eleven (if you are an old user, you can register with a new wechat and bind the same ID card). Tencent did not give me any advertising fees.

Recommended reading:

How to send a blank moments

Google products that can still be used at home

All those weird wechat tricks you probably didn’t know about

How to quickly find a satisfactory house in douban rental group

Public number Su Sheng not confused original article collation

How to grab Top 250 movies without writing Python code

Jay Chou’s new song “Say Yes, Don’t Cry”

Go back in time to baidu/Tencent/Taobao/Google in 2005

Public account: Su Sheng no doubt