-
Notifications
You must be signed in to change notification settings - Fork 650
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
node本地运行,Windows可用,iOS不可用,小火箭连接超时[已解决] #1253
Labels
bug
Something isn't working
Comments
检查过防火墙方面的问题吗?或者 iOS 能否直接访问 |
无法访问的话主要还是在防火墙侧的问题(UNM 默认会监听 0.0.0.0) |
好的,谢谢提点,我去看看路由器防火墙设置。 |
说对了!! 去路由器设置界面增加了目标设备(Windows)和8080端口转发的转发规则,小火箭ping通了!iOS可以连上Windows上运行的node服务,能看到终端上输出的日志! 现在歌曲都能点击了,但几乎所有歌曲在iOS“获取歌曲信息失败”,我去Issues看看相关贴子看有没有解决方案。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug 描述
在Windows上以node运行服务,这一年都是这样听歌的,真的很感谢这个项目的所有贡献者。最近打算试试看能不能帮助iOS端解除限制,但是遇到困难。折腾了一晚,也翻了新旧项目的Issues都没找到类似的Shadowrocket超时情况,决定还是求助。
Windows端:
$node app.js -s -e https://music.163.com -p 8080:8081
127.0.0.1:8080
,可正常使用iOS端:
$curl ifcfg.me
得到,与在网上直接查自己IP地址一致),端口8080与-p 8080:8081
的第一个端口一致,保存好,测试连接Timeout,其实到这一步就可以确定iOS无法连接Windows运行的node服务,这个是我困扰的地方default.conf
文件为default_copy.conf
,删去了含NetEase
,163
,126
字段的规则以防止与教程添加的3条规则冲突,设置使用default_copy.conf
)尝试:
iOS端小火箭服务器配置的端口改为80,可连上Windows,于是在Windows使用
$node app.js -s -e https://music.163.com -p 80:443
。iOS的网易云仍然无法使用。参考:进阶配置,iOS食用指南
预期行为
我认为当我在Windows端项目根目录中运行
$node app.js -s -e https://music.163.com -p 8080:8081
之后,iOS小火箭填写完协议HTTP,我Windows电脑的公网IP,端口8080,测试连接应该要ping通而不是显示超时。实际行为
No response
复现步骤
No response
启动命令及环境变量
$node app.js -s -e https://music.163.com -p 8080:8081
日志内容
我想要日志内容,找遍了整个项目,只看到两处相关:
./package.json
里面有"start:dev": "cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com"
,这里已经是debug
级的了,但运行时无日志产生./src/logger.js
,在里面有一句level: process.env.LOG_LEVEL ?? 'info'
,把info
改为debug
但是没有任何日志产生$node app.js -s -e https://music.163.com -p 8080:8081 >> app.log
,无法启动服务,并得到输出是stdout is not a tty
网易云音乐歌曲链接
No response
网易云音乐版本号
Windows端2.9.5,iOS端为2.0.93,我认为不是网易云版本的问题,Shadowrocket都没办法连上服务
操作系统
iOS
其他信息
No response
问题排查
The text was updated successfully, but these errors were encountered: