Solve unavailable songs for 163 cloud music desktop client / UWP client
Unblock Cloud Music Windows Desktop Client / UWP Client.
A total rewrite to Unblock163MusicClient [https://github.com/EraserKing/Unblock163MusicClient/releases] :)
As it's not possible to assign a proxy for a single UWP client, a PAC is required to hijack the traffic.
http://localhost:3413/pac/
function FindProxyForURL(url, host) { if (host == "music.163.com") return "PROXY 127.0.0.1:3412"; else return "DIRECT"; }, and you can still access any website as usual. This is proving a tiny HTTP server providing PAC file is working.
Notes:
checknetisolation loopbackexempt -a -n=1F8B0F94.122165AE053F_j2p0p5q0044a6(Run as administration, for current version), or download a GUI program here [https://loopback.codeplex.com/] and enables the UWP client.
After you have set PAC properly, you may let the desktop client use Internet Explorer's proxy settings, and it should also be working fine.
The PAC file only redirects the traffic to cloud music servers and does not hijack any other traffic. Your credit card information and bank password is still unknown to me :)
If you have something other program which sets system proxy by PAC, or you need PAC set to access Internet, you should not replace the PAC settings simply.
Instead, you should edit your PAC file and try to insert
if (host == "music.163.com") { return "PROXY 127.0.0.1:3412"; }into
function FindProxyForURL.
For example, a typical PAC file:
function FindProxyForURL(url, host) { var suffix; var pos = host.lastIndexOf('.'); pos = host.lastIndexOf('.', pos - 1); (omitted...)
You should modify it to
function FindProxyForURL(url, host) { if (host == "music.163.com") { return "PROXY 127.0.0.1:3412"; } var suffix; var pos = host.lastIndexOf('.'); pos = host.lastIndexOf('.', pos - 1); (omitted...)
127.0.0.1:1080
See [https://github.com/EraserKing/CloudMusicGear/releases]
Please report the following information according to the template.
Need the following packages:
FiddlerCore 4 [http://www.telerik.com/fiddler/fiddlercore]
Newtonsoft.Json 8.0.2 [https://github.com/JamesNK/Newtonsoft.Json]
Under Visual Studio 2015.
Thanks yanunon for his API analysis! [https://github.com/yanunon/NeteaseCloudMusic]
Thanks bin456789 for his new detail API! [https://github.com/bin456789]