Article Directory
Reprinted from the article of cpolar: No public IP? Teach you to remotely access the local Wamp server "intranet penetration"
foreword
The development of software technology is changing with each passing day. All kinds of new software that can facilitate our life, work and entertainment emerge in an endless stream, but there are also some old software that have passed the test of time and users. As far as the website integration environment we are familiar with, there are many kinds of server software in the world. Each software has its own characteristics (although the homogeneity is very serious), and it also has its own fixed applicable groups. Today, we try to install Wamp, a classic integrated environment software, and use cpolar intranet penetration to establish a data tunnel, so that we can access Wamp on the local computer on the public Internet.
1. Wamp server construction
Wamp is the Windows Apache Mysql PHP integrated installation environment. Simply put, it is the server software that runs Apache, php and MySQL integratedly under the Windows operating system. Such integrated software is convenient for us to manage Apache modules, php extensions, etc., without having to install these necessary software separately, and without modifying their configuration files separately, and they are unified by wamp.
1.1 Wamp download and installation
As a relatively well-known software, Wamp can be found and downloaded on its official website ( wampserver-64bit.en.softonic.com/ ), or searched and downloaded in 360 Software Manager or search engines.
After the software download is complete, double-click the downloaded installation file to enter the automatic installation program. There is nothing to modify during the period, so just go all the way Next
and wait for the installation to complete.
It should be noted that when Wamp automatically installs peripheral software (Apache, MySQL) and the like, it will need a VC++
collection of runtime libraries installed in the Windows system. If VC++ is not installed, Apache installation will fail.
When Wamp is installed, a small icon will appear in the Windows system tray. We can right-click on this small icon to change the language of Wamp.
Then we left-click on this icon and select 启动所有服务
the option to start the service process of wamp (wamp will automatically start web programs such as apache and MySQL).
As long as wamp starts successfully, its icon will turn green.
1.2 Wamp web page test
After all webpage running related services are started, we can left click on this icon and click localhost
the option to enter the local homepage of wamp
As long as the following page is displayed, it means that wamp has been successfully installed on the local computer.
After Wamp is successfully installed, we can find www
the folder named under the wamp installation folder, and put the webpage we intend to run in this folder, and we can install and display the webpage we want to install.
At this time, the wamp web page can only be displayed in the local LAN. If you want to make the web page accessible on the public Internet and break through the information island of the local computer, you need to install cpolar intranet penetration and use it to generate a The intranet penetrates the data tunnel, allowing us to easily access the web pages on the local computer in the public Internet environment.
2. Installation and registration of Cpolar intranet penetration
If you want to use cpolar to establish an intranet penetration data tunnel, you need to install the cpolar software first, and we can find the download of the corresponding operating system on its official website ( https://www.cpolar.com/ ).
After the download of cpolar is complete, decompress the downloaded compressed package and click .msi
the file in it to enter the automatic installation program. Since there is no part that needs to be set by ourselves (the installation location of cpolar can be chosen by ourselves), it can be installed all the way Next
finish installation.
Because cpolar will create an independent data tunnel for each user, supplemented by user passwords and token codes to ensure data security, so we need to register users before using cpolar. The registration process is also very simple. Just click on the upper right corner of the cpolar homepage 用户注册
and fill in the necessary information on the registration page to complete the registration.
2.1 Local web publishing
After completing the installation and registration of cpolar, we can start to use cpolar to establish an intranet penetration data tunnel. Let the web pages on the local computer wamp server be accessible on the public Internet. Since the web page emphasizes stable access, the data tunnel of the free version of cpolar is reset every 24 hours. The author does not want to reconnect every day, so I upgrade cpolar to the VIP version in order to obtain a long-term stable intranet penetration data tunnel.
2.2 Cpolar cloud settings
To achieve the purpose of intranet penetration, you need to log in to cpolar's official website first, find the 预留
button on the left side of the user's main page, and click to enter the reserved page of cpolar's data tunnel. A public Internet address is generated here (it can also be regarded as the entrance of the data tunnel). Since this address is not connected to the local software output port at this time, it can also be regarded as a blank data tunnel.
In 保留二级子域名
the field, you need to make simple settings for several items of information, namely
地区
: The area where the server is located, just select the nearest one二级域名
: Will eventually appear in the generated public Internet address as one of the identifiers of the network address描述
: It can be regarded as the description of this data tunnel, which can be distinguished from other tunnels).
After completing these settings, you can click 保留
the button on the right to keep this data tunnel. Of course, if this data tunnel is no longer intended to be used, you can click the "x" on the right to delete it easily, saving valuable tunnel quota.
2.3 Cpolar local settings
After completing the setting of the cpolar cloud and keeping the blank data tunnel, we open the local cpolar client and connect the blank data tunnel generated by the cloud with the local wamp page.
After opening and logging in the cpolar client locally (you can enter localhost:9200 in the browser to access the Web-UI, or click the shortcut of the cpolar client in the Windows start menu), click "Tunnel Management" on the left side of the main interface of the client Click the "Create Tunnel" button under the item to enter the local tunnel creation page (if you want to create a temporary data tunnel without a 24-hour reset address, you can directly set it here instead of setting a blank data tunnel on the cpolar official website).
On this page, several information settings also need to be made, including:
1.
隧道名称
– It is the cpolar local tunnel information comment, as long as it is convenient for us to distinguish;
2.协议
– The wamp page is in the form of a web page, so choose the http protocol;
3.本地地址
– The local address is the output port number of the local website, and apache in wamp The default output port is 80, so fill in 80 here (if necessary, you can also modify it in wamp);
4.域名类型
– Since we have reserved a data tunnel for the second-level subdomain name in the cpolar cloud, check " Second-level sub-domain name" (if the reserved domain name is a custom domain name, check the custom domain name), and fill in the reserved second-level sub-domain name in the "Sub Domain" column on the next line, the second-level sub-domain name we reserved It is "wampweb", so fill in the same my second-level subdomain name here.
5. If it is created临时数据隧道
, directly check "Random Domain Name" to let the cpolar client generate the network address by itself;
6.地区
– It is the same as the information reserved in the cpolar cloud, and we can fill it in according to the actual use;
After completing these settings, you can click the "Create" button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local payment test page. When the data tunnel is successfully established, cpolar will automatically jump to the 隧道管理
-- 隧道列表
page. Here, we can manage this data tunnel, including opening, closing or deleting this tunnel, or click the "Edit" button to modify the information of this data tunnel.
3. Public network access test
Finally, we click on the left 状态
- 在线隧道列表
button to find the address of the wamp page on the public Internet.
We paste this address into other device browsers, and we can see the local wamp page. It also means that the local wamp webpage has broken through the limitation of information islands and has been successfully published on the public Internet.
4. Conclusion
In fact, wamp is only for loading webpages 容器
. We can install the webpage content we want in wamp and make this webpage a window for us to speak to the outside world. With the intranet penetration data tunnel created by cpolar intranet penetration, visitors on the Internet can see the web pages loaded by local wamp.