Build unblockNeteaseMusic service
UnblockNeteaseMusic is a tool that can lift the overseas restrictions on Netease cloud music and unlock grayed out (non copyrighted) songs, so that you can listen to any songs on the client without restrictions. Previously, there were many similar tools, but they seem to be not maintained or invalid. The items mentioned here are frequently updated and support windows, MacOS, Android, IOS and other devices, so I'd like to share some usage methods.
- Use Netease cloud old chain /qq/ Xiami / Baidu / kugou / KuWo / Migu audio source to replace the grayed song link (only the first four are enabled by default).
- Add the x-real-ip parameter to the request to unlock the overseas restrictions. It supports specifying the Netease ECS IP and setting the upstream http/https proxy.
- The complete traffic proxy function (http/https) can be directly used as the system proxy (also supporting PAC).
- Install Node.js
curl -sL https://deb.nodesource.com/setup_10.x | bash - apt install -y nodejs git
- Pull & Run UnblockNeteaseMusic
git clone https://github.com/nondanee/UnblockNeteaseMusic.git cd UnblockNeteaseMusic node app.js
- Create Systemd
[Unit] Description=UnblockNeteaseMusic After=network.target Wants=network.target [Service] Type=simple PIDFile=/var/run/UnblockNeteaseMusic.pid WorkingDirectory=/opt/UnblockNeteaseMusic ExecStart=$(command -v node) app.js -p 4567 RestartPreventExitStatus=23 Restart=always [Install] WantedBy=multi-user.target
- Start & Power on
systemctl start UnblockNeteaseMusic systemctl enable UnblockNeteaseMusic
- Change hosts
Using this method, you must listen to port 80, that is, use the
-p 80 parameter to specify port 80 to run.
<Your_Server_IP> music.163.com <Your_Server_IP> interface.music.163.com
- Set app config
Settings > WLAN > Network Settings > Advanced Options > Proxy
Manual proxy > just fill in your server IP and port. Auto proxy > just fill in your PAC address. Address: http://<your_server_ip:port>/proxy.pac
App Settings > Tools > Custom proxy > HTTP proxy
Just fill in your server IP and port.
shadowrockettool is required.
Open tool > Add node (select
HTTP as the type, enter your IP and port, and then click the remarks in the upper right corner) > edit configuration > Add Rule (select
user-agent as the type and
NeteaseMusic* as the user agent), and save it.
System Preferences > Network > Advanced > agent
本作品采用 知識共享署名-相同方式共享 4.0 國際許可協議 進行許可
標簽: unblockNeteaseMusic, Nodejs, proxy
已有 4 條評論
It's awesome in favor of me to have a web site, which is helpful designed for my know-how.
Wow, that's what I was seeking for, what a material!
existing here at this webpage, thanks admin of this web site.
I read this paragraph completely on the topic of
the comparison of hottest and previous technologies, it's amazing article.