Intranet penetration: How to access the local web server through the public network?

foreword

With the advancement of science and technology and the development of the times, computers and the Internet have been deeply integrated into our lives and work. Correspondingly, the exploration of computers and networks, which add color and fun to our lives, has become a hobby of many people. Hobbies, and self-publishing a website is a direct manifestation of this hobby. With the help of modern software, we can already create a simple website on our local computer. But the creation of the website is not just for us to appreciate by ourselves, but also to be displayed in front of the public. Today, we will introduce to you how to use cpolar to publish a website located on the intranet.

Thanks to modern software technology, we can run software through local webpages, and with a large number of open source webpage designs, we can build a website in a relatively easy way. Here we use PHPStudy and a free open source web resource to create a web page on the local computer.

1. First install PHPStudy

First install PHPStudy on the local computer, and install various software required for webpage operation, such as apache, php, etc., in the "Software Management" of the main page of PHPStudy.

img

2. Download an open source web file

Then download an open source web page file, and put all the files contained in the web page into the WWW folder of PHPStudy.

img

img

3. Select "Create Website" and point the webpage content to the downloaded open source webpage file

Then go back to PHPStudy, select "Create Website" on the "Website" page of the main interface, and point the webpage content to the open source webpage file we downloaded.

img

img

4. Open the local web page

At this point, we open the local webpage (localhost: port 80), and we can see that the downloaded open source webpage content has been displayed on the local webpage.

img

5. Open the local cpolar client

Then we open the local cpolar client, point the data tunnel port through the intranet to the local port 80, so that visitors passing through the data tunnel can be correctly pointed to the output port of the local web page.

img

6. Save the tunnel settings to generate a data tunnel

After filling in the tunnel information, you can save the tunnel settings and generate the corresponding data tunnel. Then we return to the "Online Tunnel List" page under the "Status" item, and copy the public network address of the local web page (that is, the entrance of the data tunnel) for access.

img

img

As long as the content of the webpage seen in the local test can be correctly displayed through the public network address, it means that we have successfully established a simple webpage locally and published it to the public Internet through the intranet penetration function of cpolar, so that Everyone can see (More details.

Of course, publishing web pages on local LAN computers is only one of the powerful functions of cpolar, and we can also apply the data tunneling function of cpolar in more usage scenarios. If you have any questions about the use of cpolar, please contact us, we will provide you with assistance within our ability. Of course, you are also welcome to join the VIP official group of cpolar to explore the unlimited potential of cpolar together.

Reprinted from cpolar pole cloud article: [Public network access to local intranet web server [intranet penetration]] ( public network access to local intranet web server [intranet penetration] - cpolar pole cloud )

Guess you like

Origin blog.csdn.net/weixin_61885496/article/details/132175321