Article directory
1 Introduction
Among the various modern network application scenarios, watching videos is definitely one of the main application scenarios. With the development of mobile network technology, watching videos anytime and anywhere has become a basic need. However, with the concentration of capital on video applications, you must first become a member if you want to watch videos. This made me very depressed, so I came up with the idea of building my own audio and video cloud disk, during which I also tried a variety of audio and video servers. Today, the author will introduce to you how to use Cpolar intranet penetration + Emby to build your own private audio and video platform in Windows system.
2. Emby website construction
As one of the three musketeers of audio-visual platforms respected by foreign players, Emby has a beautiful software interface (although the author feels it is 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, eliminating the trouble of deploying the web page running environment.
2.1. Emby download and installation
As mentioned before, 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 select the emby software corresponding to the operating system to download (the author downloaded the Windows X64 version).
The Emby software is downloaded as a compressed package. After the download is completed, unzip it to your local computer. EmbyServer.exe
According to the installation instructions on the Emby official website, we find the file named in the system folder of the decompressed Emby folder and double-click to execute the installation.
After double-clicking the EmbyServer.exe file, Windows may pop up a firewall security warning. We only need to allow it to access the Internet.
In just a short time, Emby will be installed. After the software is installed, a green Emby icon will be generated in the system tray in the lower right corner of the Windows taskbar. Right-click this icon and select Emby Premiere
the option from the pop-up menu to enter the local Emby server settings page.
Emby's settings page is unremarkable, with the usual "interface language", "local media file storage location", "administrator information" and the like. I won’t go into too much detail here.
2.2 Emby web page test
After completing the settings of the local Emby server, the Emby software will transfer to the login page (if there is no jump, you can enter localhost:8096/Web in the browser address bar). Here, as long as you enter the login name entered during the setup, you can log in to Emby. Server main page.
At this time, the Emby Server is 8096端口
outputting locally. Next, we only need to use cpolar intranet penetration to establish an intranet penetration data tunnel for the local 8096 port, so that we can access the local (in the LAN) computer on the public Internet. Emby Server page on.
3. Local web page 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 proceed 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 cpolar’s official website 下载
.
The author is using the Windows operating system, so I chose the Windows version to download.
After the Cpolar download is completed, unzip the downloaded file and double-click the unzipped .msi
file to automatically execute the installation program, 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. Therefore, 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 then use cpolar to create a public Internet address that can connect to the local test page, allowing us to test the payment page in a limited range.
3.2 Cpolar cloud settings
Since the author wants to be able to access his private audio and video cloud disk at any time and does not want to reconnect every day (the intranet penetration data tunnel set up in the free version of cpolar will be reset every 24 hours), so I upgraded cpolar to the VIP version. , to obtain a long-term and stable intranet penetration data tunnel. If it is the free version of cpolar or you only create a data tunnel temporarily, you can set it up directly on the cpolar client instead of setting it up on the cpolar cloud.
In order to create an intranet-penetrating data tunnel that can survive long-term and stably, we first log in to cpolar's official website, find the button on the left side of the user's home page, 预留
and click to enter cpolar's data tunnel reservation 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 types of data tunnels that can be reserved. Here we select 保留二级子域名
the field.
In the "Reserved second-level subdomain name" field, you need to make several simple settings of information, namely:
- Region: The region where the server is located, just select the nearest one)
- Second-level domain name: 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, as long as it can be distinguished from other tunnels).
After completing these settings, you can click 保留
the button on the right to retain this data tunnel.
Of course, if you no longer plan to use this data tunnel, you can click the "x" on the right to easily delete it and save valuable tunnel quota.
3.3 Cpolar intranet penetrates local settings
After completing the settings of the cpolar cloud and establishing the entrance to the intranet penetration data tunnel, we return to the local cpolar client and connect the blank data tunnel generated by the cloud to the local eEmby server page so that we can access it on the public Internet Local test page.
Open and log in to the cpolar client locally (you can enter it in the browser to localhost:9200
access it directly, or you can click the cpolar client shortcut in the start menu).
隧道管理
Click the button on the left side of the client's main interface 创建隧道
to enter the local tunnel creation page (if you want to create a temporary data tunnel that does not reset the address for 24 hours, you can set it up directly here instead of setting up a blank data tunnel on the cpolar official website).
On this page, you also need to make several information settings, which include:
隧道名称
: Can be regarded as the local tunnel information annotation of cpolar, which is convenient for us to distinguish the purpose of not using the tunnel;协议
: Emby server outputs in web page format, so http protocol is selected;本地地址
: The local address is the output port number of the local website. The Emby server web page port is 8096, so 8096 is also filled in here;域名类型
: In this example, we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, so check "Second-level subdomain name" (if the reserved domain name is a custom domain name, check the custom domain name);Sub Domain
Fill in the reserved second-level subdomain name in the next column, fill in "Embyserverweb" here. If you plan to create a temporary data tunnel, directly check "Random domain name" and let the cpolar client generate the network address by itself;地区
: The same as the information reserved in cpolar cloud, we can fill it in according to the actual place of use;
After completing these settings, you can click 创建
the button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local Emby server page, thus creating 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. We can also 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. Paste this address into the browser, and you will see the Emby login page installed on your local computer.
5 Conclusion
At this point, we have successfully used cpolar+Emby to build our own private audio and video library, allowing us to access the audio and video resources on our local computer anytime and anywhere. Of course, building a personal audio and video cloud disk is only one aspect of cpolar's application scenarios. We can also use other web pages or software to cooperate with cpolar to build other application scenarios to make our life and work more convenient.
Reprinted from cpolar pole cloud article: Home private theater – Windows builds Emby media library server and remote access "no public network IP"