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

  1. Install Node.js
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt install -y nodejs git
  1. Pull & Run UnblockNeteaseMusic
git clone https://github.com/nondanee/UnblockNeteaseMusic.git
cd UnblockNeteaseMusic
node app.js
  1. 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
  1. Start & Power on
systemctl start UnblockNeteaseMusic
systemctl enable UnblockNeteaseMusic

Used

  1. 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
  1. 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 :)

文章目錄
文章目錄