Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac版指南 #597

Open
hemisu opened this issue Aug 19, 2020 · 16 comments
Open

Mac版指南 #597

hemisu opened this issue Aug 19, 2020 · 16 comments

Comments

@hemisu
Copy link

hemisu commented Aug 19, 2020

摸索整理得出自己能用的方式(hosts 模式)

简易版本 (简单意味着信任

git clone https://github.com/nondanee/UnblockNeteaseMusic.git
cd UnblockNeteaseMusic
npm i

接着信任证书,双击目录下的 ca.crt 文件,点击添加
image

输入密码后再双击:
image

按照指引点击,输入密码
image


以下参考 #22

1. 寻找网易云服务器的IP

ping music.163.com

得到类似 223.252.199.66 的IP

2. 向hosts文件添加记录

127.0.0.1 music.163.com
127.0.0.1 interface.music.163.com

hosts地址:

Windows hosts C:\Windows\System32\drivers\etc\hosts
Linux/macOS hosts /etc/hosts

3. 设置参数启动

node app.js -p 80:443 -f 223.252.199.66

若在 linux/macOS下报错 Error: listen EACCES 0.0.0.0:80 请加 sudo

接着使用 safari 打开 https://music.163.com 确保可以访问(如果弹出无法访问,再信任一次)

重启网抑云~

PS: 如果不信任证书请参照 #48

@xiaoxiongzi
Copy link

牛逼

@wuxingli
Copy link

wuxingli commented Sep 3, 2020

每次必须使用命令吗:node app.js -p 80:443 -f 223.252.199.66,不然打开客户端页无法使用

@hemisu
Copy link
Author

hemisu commented Sep 3, 2020

每次必须使用命令吗:node app.js -p 80:443 -f 223.252.199.66,不然打开客户端页无法使用

嗯,需要启动服务才可以代理过去

@mofanv
Copy link

mofanv commented Sep 7, 2020

六批,这个指南简单易食,一次搞定!

@zhuxinquan
Copy link

666

@jobscolin
Copy link

可以!

@JiayangZhou
Copy link

每次用网易云都要代理吗?!

@hemisu
Copy link
Author

hemisu commented Oct 12, 2020

每次用网易云都要代理吗?!

不用的时候把hosts改回来就好了

@lt-fancy
Copy link

node app.js -p 80:443 -f 223.252.199.66

最重要是这里代理的端口包含了443,很多命令只有80的根本不能用

@geoleonsh
Copy link

做了个起停脚本
https://github.com/geoleonsh/unblockNeteaseShell

@daniellauyu
Copy link

爱你,我刚发完用不了的issues,然后翻到了这篇指南,果断搞定,感谢!

@ipruning
Copy link

👍 完美解决!

@1in9e
Copy link

1in9e commented Jan 26, 2021

点亮~

@kainchow
Copy link

赞赞赞

@bennyyyy-x
Copy link

为什么我的terminal卡在这里了
image

@sunsetanno
Copy link

成功了,但只有网页可以打开,但是客户端还是不行~不知道啥原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests