[Jellyfin audio and video server] Local deployment of public network remote audio and video library

Please add image description

1 Introduction

With the popularization of mobile smart devices, various usage requirements have also been developed, from the earliest mobile listening to music and viewing pictures (MP3 era), to the subsequent mobile video requirements (MP4 era) to the current mobile streaming media Demand (watch videos on smartphone). But when we got used to these needs, we suddenly found that we had unknowingly become leeks waiting to be harvested (three pieces of equipment will cost extra). As a stubborn leek, I will naturally not be willing to be cut off, so I plan to build my own private audio and video media platform. Now, the author will show you the whole process of building your own private audio and video platform using cpolar intranet penetration + Jellyfin.

2. Jellyfin service website construction

As a relatively well-known audio and video server, Jellyfin is very popular on the NAS platform, but the author is not even willing to be a leek. Naturally, I don’t have professional equipment like NAS. I only have a retired desktop computer. Fortunately, the configuration of this desktop computer does not count. It’s ridiculously low, and jellyfin has a Windows version of the server, allowing me to set up a jellyfin server in a simple way.

2.1. Jellyfin download and installation

First, we download the server side of Jellyfin. Just visit the official website of jellyfin, click 下载the button to enter the download page, and select 服务器the items to download. Of course, jellyfin also provides software for other operating systems (linux, MacOS), just download it on demand.

20230412092501

20230412092502

20230412092503

After the download of jellyfin is completed, you can directly double-click the .exe file to enter the automatic installation program. During the installation process, in addition to paying attention to the selection Basic Install(Recommended), you can click "Next" to skip almost everything else.

20230412092504

20230412092505

After the Jellyfin installation is complete, click the generated shortcut to start the jellyfin service program. Jellyfin will generate a small icon in the Windows system tray. Right-click on the icon to open the jellyfin web installation interface.

20230412092506

When starting the jellyfin service for the first time, a Windows Firewall warning may appear, we can choose 允许访问it.

20230412092507

After clicking open jellyfin, the software will automatically open the browser access localhost:8096port and enter the jellyfin service web page setting page. The settings here are general language settings, administrator account settings, media library folder selection (you can skip it temporarily), allowing remote access, etc.

20230412092508

20230412092509

20230412092510

20230412092511

20230412092512

After completing these settings, you can officially log in to the jellyfin web page.

2.2. Jellyfin web page test

For the convenience of display, after the author completed the installation of the jellyfin service web page, I logged in to the jellyfin service with the admin role. As long as we can log in to the jellyfin main page correctly, it means that we have completed the installation of jellyfin.

20230412092513

20230412092514

3. Local web publishing

After completing the installation of jellyfin service, we can use cpolar intranet penetration to create an intranet penetration data tunnel and build a public Internet address connecting to the local jellyfin page, so that we can access home (LAN) on the public Internet. jellyfin server.

3.1 Installation and registration of cpolar

cpolar official website: https://www.cpolar.com

Like the installation of jellyfin service, cpolar can be downloaded directly from its official website page. Find the button in the upper part of the cpolar official website page 下载.

20230412092515

The author is using the Windows operating system, so I chose Windows版本to download it.

20230412092516

After the Cpolar download is completed, unzip the downloaded file and double-click the unzipped file .msi文件to automatically execute the installation program. Then just click "Next" to complete the software installation.

20230412092517

20230412092518

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 we officially use cpolar, we need to register as a user. The registration process is simple and easy. 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.

20230412092519

20230412092520

3.2 Cpolar cloud settings

Since the data tunnel of the free version of cpolar is reset every 24 hours, I don’t want to reconnect every day, so I will upgrade cpolar to the VIP version so that I can obtain an intranet penetration data tunnel that can exist stably for a long time.

Next, 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 (can also be regarded as the entrance of the data tunnel). Since this address is not connected to the local jellyfin web page output port at this time, it can also be regarded as a blank data tunnel.

20230412092521

On the reservation page, you can see many types of data tunnels that can be reserved. Here we select the "Reserve second-level subdomain name" field.

20230412092522

In 保留二级子域名the fields, several simple settings of information need to be made, 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
  • 描述: Can be seen as a description of this data tunnel, as long as it can be distinguished from other tunnels

After completing these settings, you can click the "Reserve" button on the right to retain this data tunnel.

20230412092523

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.

20230412092524

3.3 Cpolar Local Settings

After completing the cpolar cloud settings and retaining the blank data tunnel, we return to the cpolar client on the local computer and connect the blank data tunnel generated in the cloud with the local jellyfin service page.

Open and log in to the cpolar client locally (you can enter it in the browser to localhost:9200access it directly, or you can click the cpolar client shortcut in the start menu).

20230412092525

隧道管理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:

1.: 隧道名称It can be regarded as the local tunnel information annotation of cpolar, as long as it is convenient for us to distinguish.
2 协议.: Since the test page is a web page, we choose http协议
3 本地地址.: The local address is the output port number of the local website. Before we visited the local jellyfin The port number for the web page is 8096, so 8096 is also filled in here.
4 域名类型.: Since we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, check "Second-level subdomain name" (if the reservation is custom Domain name, then check the custom domain name)
5 Sub Domain.: Fill in the reserved second-level subdomain name, in this example it is "jellyfinweb" (if you plan to create a temporary data tunnel, directly check the "random domain name", which will be used by the cpolar client Generate the network address by yourself)
6 地区.: It is the same as the information reserved in the cpolar cloud. We can fill it in according to the actual place of use.

20230412092526

After completing the above 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 payment test page, and complete the connection between the cpolar cloud address and the local jellyfin web page.

After the connection between the cpolar cloud address and the local jellyfin server webpage is completed, the cpolar client will automatically jump to the "Tunnel List" page under the "Tunnel Management" item to manage this data tunnel, including opening, closing or deleting this data tunnel. tunnel, you can also click the "Edit" button to modify the information of this data tunnel.

20230412092527

4. Public network access test

Finally, we click the button 状态under the left item 在线隧道列表to find the public Internet address of the jellyfin service.

20230412092528

Paste this address into the browser, you can see the local jellyfin web page, and successfully establish your own private audio and video platform.

20230412092529

20230412092530

5 Conclusion

Of course, there are many software and web page source files that can be used to build a private audio and video platform. Jellyfin is not the only choice, but the process of using other software and source files to build a private audio and video platform is similar. The most important thing is that even leeks refuse to be harvested. when. In most cases, we can still rely on our own efforts to have enough food and clothing.

Guess you like

Origin blog.csdn.net/cdtu_mid/article/details/132473528