Background For example, to build a website on the intranet, for example, the address of my newly built website is 192.168.31.56. When accessing this IP address on the LAN, you can see the page, but it is difficult to access it outside the network. You need to bind the domain name, but the domain name has not been applied for and the broadband service providers in China do not provide IP addresses. You need intranet penetration to achieve this.
To realize this intranet penetration, there are frp, ngrok and other software in foreign countries, and sunflower and other software in China, which either need an internet server or need to charge. In short, they need to spend money. But as a white X party, it is better to find free intranet penetration service without spending money, and it is also a one-click command that allows free intranet penetration.
Then enter ssh – R 80:192.168.31.56:80 ssh.localhost.run in the command box of the intranet server terminal, and then visit Xxxyy-7ade80ab.localhost.run to visit the website for further explanation
The official website of localhost.run is http://localhost.run/ , the sample code is ssh – R 80: localhost: 8080 ssh.localhost.run, where ssh followed by – R is the reverse proxy: equivalent to frp or ngrok
The first port is the port for accessing localhost.run from the external network. The fixed port is 80. The second port is the port of your own intranet. It is set according to your own service port. For example, if the port of your own WordPress website is 80, you can fill in 80. Django is generally 8090, and Flask is 8080.
Other answers from the author: The experience of using this server has helped nearly a thousand people. It is concise and practical. It is worth taking a few minutes to read it! [Alibaba Cloud domain name registration and filing, server ECS purchase and login]（ https://zhuanlan.zhihu.com/p/12 。
3346515) The server establishes a personal website. Look at this, and avoid detours and buy wrong ones. It is a perfect guide to avoid pits! [Alibaba Cloud Server Quickly Build Website _ Install BT Pagoda Panel and WordPress]（ https://zhuanlan.zhihu.com/p/13 。
7713506) The server shopping guide that your friends all like can save you 4 hours of shopping time if you read it in 5 minutes! [Alibaba Cloud domain name registration and filing, server ECS purchase and login]（ https://zhuanlan.zhihu.com/p/123346515 。
)! [Add AliCloud domain name to Qiniu map bed]（ https://zhuanlan.zhihu.com/p/126285206 )、! [markdown multi-platform release and seven-new chart bed use]（ https://zhuanlan.zhihu.com/p/97
868759) There are more than a dozen such excellent experiences to share, which are all included in my personal answers. If you follow me, you will gain different experience. Alibaba Cloud recommends that you set up personal blog websites and enterprise portals can use ECS. If its websites such as personal blogs are mainly for domestic users, it is recommended to select domestic server providers to speed up.
! [Alibaba Cloud domain name]（ https://wanwang.aliyun.com/domain/com/?userCode=yos4xyvp ）Connect,! [Alibaba Cloud Server ECS]（ https://www.aliyun.com/minisite/goo
ds? UserCode=yos4xyvp) Link to why Alibaba Cloud used to choose an old domain name service provider for domain name registration. Among them, Wannet has been acquired by Alibaba to provide domain name registration services. After submitting the registration information, Miss AliCloud will help you review it for free the next day, and will also actively call to help correct it.
If you submit the filing information to the ICP filing agency yourself, in case of being rejected due to low-level errors, it will waste about ten days. The domain name ICP filing needs a server, and Alibaba Cloud also provides server purchase. After all, the server is the largest expenditure in Alibaba Cloud, and the domain name is trivial.
And after purchasing the server, customer service will also call to ask whether technical support is needed. It is still a good Alibaba Cloud server. There is a discount for purchasing new users. At the most basic level, it is not more than 100 yuan a year. If it is an undergraduate, it is free to use the server before the registration is completed.
For example, on March 1, I bought a server for one year, and the domain name was submitted for filing on the 18th, and the domain name was approved for filing. The server lease time was calculated again from the 18th, that is, it can be used on March 18 of the next year, which is equivalent to using a few more days for free, taking a small advantage