Article directory
1 Introduction
In the various modern network application scenarios, watching videos is definitely one of the main application scenarios. Coupled with the development of mobile network technology, watching videos anytime, anywhere has become a basic requirement. However, with the concentration of capital in video applications, I have to be a member first to watch videos, which makes me very depressed, so I came up with the idea of building my own audio-visual cloud disk, and tried a variety of audio-visual servers during the period. Today, the author will introduce to you how to use Cpolar intranet penetration + Emby in Windows system to build your own private audio-visual platform.
2. Emby website construction
As one of the three swordsmen of audio-visual platform respected by foreign players, Emby has a beautiful software interface (although the author feels very similar to jellyfin) and powerful functions, and can support multiple operating systems (Windows, MacOS, Linux, Android, etc.) , the most important thing is that it .exe
installs and deploys in the form, which saves the trouble of deploying the webpage operating environment.
2.1. Emby download and install
As mentioned earlier, the installation of Emby is very simple. Just log in to Emby's official website emby.media
and click the button at the top of the page download
to enter the software download page. On the download page, we can choose the emby software corresponding to the operating system to download (the author downloaded the Windows X64 version).
The Emby software is downloaded in the form of a compressed package. After the download is complete, unzip it to the local computer. According to the installation guide on the Emby official website, we find the file named under the system folder of the decompressed Emby folder, and EmbyServer.exe
double-click to execute the installation.
After double-clicking the EmbyServer.exe file, Windows may pop up a firewall security warning, we just need to allow it to access the Internet.
In a short time, Emby will be installed. After the software installation is complete, a green Emby icon will be generated in the system tray in the lower right corner of the Windows taskbar. Right-click on this icon and click on Emby Premiere
the options in the pop-up menu to enter the settings page of the local Emby server.
Emby's setting page is unremarkable, and it is all conventional "interface language", "local media file storage location", "administrator information" and so on. I won't go into too much detail here.
2.2 Emby web page test
After completing the setting of the local Emby server, the Emby software will turn to the login page (if there is no jump, you can enter localhost:8096/Web in the browser address bar), here you only need to enter the login name entered during the setup, and you can log in to Emby Server main page.
At this time, the Emby Server is 8096端口
output locally. Next, we only need to use cpolar intranet penetration to establish an intranet penetration data tunnel for the local port 8096, and then we can access the local (LAN) computer on the public Internet. Emby Server page on .
3. Local web publishing
3.1 Register and install cpolar intranet penetration
cpolar intranet penetration tool: https://www.cpolar.com/
After completing the installation of Emby Server on the local computer, you can switch to the installation of the cpolar intranet penetration tool. Like the installation of Emby Server, the installation and registration of cpolar is also simple and easy. We can find the button directly on the official website of cpolar 下载
.
The author uses the Windows operating system, so choose the Windows version to download.
After the download of Cpolar is complete, decompress the downloaded file, double-click the decompressed .msi
file to execute the installation program automatically, and then click all the way Next
to complete the installation.
cpolar will create an independent data tunnel for each user, and ensure the data security of each user through user password and token code, so before using cpolar, you need to register and log in. The process of registering a new user on the cpolar official website is also very simple. Just click the "User Registration" button in the upper right corner of the cpolar homepage and fill in the necessary information on the registration page to complete the registration.
After completing the installation of Emby Server and cpolar intranet penetration program, we can use cpolar to create a public Internet address that can connect to the local test page, so that we can test the payment page in a limited range.
3.2 Cpolar cloud settings
Because the author wants to be able to access his private audio-visual cloud disk at any time, and does not want to reconnect every day (the intranet penetration data tunnel set by the free version of cpolar will be reset every 24 hours), so he upgraded cpolar to the vip version To obtain a long-term and stable intranet penetration data tunnel. If it is a free version of cpolar or just temporarily creates a data tunnel, you can directly set it on the cpolar client instead of the cpolar cloud.
In order to create a long-term and stable intranet penetration data tunnel, we first log in to cpolar's official website, find the button on the left side of the user's main page, 预留
and click to enter the cpolar reserved data tunnel page. A public Internet address is generated here (which can be understood 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.
On the reservation page, you can see many kinds of data tunnels that can be reserved. Here we select 保留二级子域名
the field.
In the field of "Reserve the second-level subdomain name", you need to set several simple information, namely:
- Region: the region where the server is located, just select the nearest one)
- Second-level domain name: it will eventually appear in the generated public Internet address as one of the identifiers of the network address)
- Description: 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.
3.3 Cpolar intranet penetration local settings
After completing the setting of the cpolar cloud and establishing the entrance of the intranet penetration data tunnel, we return to the local cpolar client and connect the blank data tunnel generated by the cloud with the local eEmby server page, so that we can access it on the public Internet. Local test page.
Open and log in the cpolar client locally (you can directly access it by typing in the browser localhost:9200
, or click the shortcut of the cpolar client in the start menu).
隧道管理
Click the button on the left side of the main interface of the client 创建隧道
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 can be regarded as cpolar’s local tunnel information annotation, which is convenient for us to distinguish the purpose of not using the tunnel;
2.协议
: Emby server is output in the form of a web page, so choose the http protocol;
3.本地地址
: The local address is the output port of the local website No. Emby server webpage port is 8096, so fill in 8096 here;
4域名类型
.: In this example, we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, so check the "secondary subdomain name" ( If the reserved domain name is a custom domain name, check the custom domain name); 5. Fill in the reserved second-level subdomain name
in the next column, here fill in "Embyserverweb".Sub Domain
If you plan to create a temporary data tunnel, just check "Random domain name" directly, and the cpolar client will 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 button at the bottom of the page to connect the blank data tunnel on the cpolar cloud with the local Emby server page, that is, create a data tunnel that can access the local Emby server on the public Internet.
We can manage this data tunnel on the page under the item, including opening, closing or deleting this tunnel, or click the "Edit" button to modify the information of this data tunnel 隧道管理
.隧道列表
4. Public network access test
Finally, we click the button 状态
under the left item 在线隧道列表
to find the public Internet address of the Emby Server page, and paste this address into the browser to see the Emby login page installed on the local computer.
5 Conclusion
So far, we have successfully built our own private audio-visual library using cpolar+Emby, allowing us to access the audio-visual resources on the local computer anytime and anywhere. Of course, building a personal audio-visual cloud disk is only one aspect of cpolar application scenarios. We can also use other web pages or software to cooperate with cpolar to build other application scenarios, making our life and work more convenient.