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.
Features
- 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).
Project
Github: https://github.com/nondanee/UnblockNeteaseMusic
Install
- 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
/etc/systemd/system/UnblockNeteaseMusic.service
[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
Used
- Change hosts
Windows:C:\Windows\System32\drivers\etc\hosts
Android:/system/etc/hosts
Mac:/etc/hosts
IOS:/etc/hosts
Linux:/etc/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
- Android
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
- Windows
App Settings > Tools > Custom proxy > HTTP proxy
Just fill in your server IP and port.
- IOS
The shadowrocket
tool 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.
- macOS
System Preferences > Network > Advanced > agent
PAC: http://<your_server_ip:port>/proxy.pac
Enjoy :)
本作品采用 知識共享署名-相同方式共享 4.0 國際許可協議 進行許可
標簽: unblockNeteaseMusic, Nodejs, proxy
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.
改成英文博客了吗?