Access local websites on the public network through cpolar

Through cpolar, you can easily map the local URL to the public network for access. The following is a brief introduction to the implementation steps.

Table of contents

1. cpolar download

2. Installation

3. Use

3.1 Login 

3.2 Create tunnel


1. cpolar download

cpolar official website address: cpolar - secure introspectable tunnels to localhost

Register and log in via QQ email for access.

2. Installation

Download the zip package suitable for Windows platform from the official website , unzip it to get the cpolar installation package, and then double-click the installation package to install it by default.

3. Use

3.1 Login 

After cpolar is successfully installed locally, you can access the cpolar web UI management interface through a browser in the form of [http://local ip address:9200], such as

You can access the cpolar web ui management interface [it can also be accessed on different devices under the same LAN], as shown in the figure below, just log in with your cpolar account: 

After successful login to the cpolar web UI interface, you will automatically be redirected to the dashboard interface. Here we can create tunnels, edit tunnels, view tunnel information, view the generated public network address, view system status and other information. 

cpolar will install two sample tunnels by default, which can be used directly, or edited or deleted:

  • One is the Website tunnel pointing to http 8080 port
  • One is an ssh tunnel, pointing to tcp port 22 (if it is a windows system, it is a remoteDesktop tunnel, pointing to tcp port 3389)

3.2 Create tunnel

隧道管理Click—— on the left dashboard 创建隧道and fill in the tunnel information

  • Tunnel name: It can be customized. Just be careful not to duplicate the existing tunnel name.
  • Protocol: Selecthttp
  • Local address: fill in the port number to be mapped, such as 8080
  • Domain name type: Free package selection随机域名
  • Region: You can freely choose the server region (note that the China NAS region is only available to NAS package users)

Click Create (Note: Change the local address to an address deployed locally and requiring external network access)

After the tunnel is successfully created, the page will automatically jump to 隧道列表the page where you can see all data tunnels, including the tunnel-1 tunnel that was just created successfully (note: click to start)

Click Status - Online Tunnel List on the left dashboard to view all local online tunnels and the generated public network addresses.

You can see that the tunnel-1 tunnel you just created successfully has the corresponding public network address generated. You can copy it to the browser and access it:

  • An http protocol address
  • An https protocol address (save the tedious steps of applying/configuring a certificate)

Through the above steps, other users can access the public network address through an Internet browser.

Guess you like

Origin blog.csdn.net/weixin_43734080/article/details/135404812