Shadowsocksx-ng: macOS系统10.13.5系统连接不上,服务没问题手机能连接上

Created on 14 Jul 2018  ·  24Comments  ·  Source: shadowsocks/ShadowsocksX-NG

Most helpful comment

3
1
2

找到原因了,端口被占用导致,端口按照这样修改就可以了,或者端口改成其他的

All 24 comments

+1, 我的是mac10.12系统也连不上,android手机可以用

+1

3
1
2

找到原因了,端口被占用导致,端口按照这样修改就可以了,或者端口改成其他的

你好请问这个端口要怎么修改呢 我遇到了跟你一样的问题

修改了之后还是一样不能用啊?

注: ShadowsocksX 默认本地端口为 1080, ShadowsocksX-NG 默认本地端口为 1086 。
通过
1 、 lsof -i :1086
2 、curl --socks5 127.0.0.1:1086 ip.gs
3 、plutil -p ~/Library/Preferences/com.qiuyuzhou.ShadowsocksX-NG.plist | grep "ServerHost\|Password\|Method\|ServerPort\|ShadowsocksOn\|ShadowsocksRunningMode\|LocalSocks5"
4 、 tail -n 20 ~/Library/Logs/ss-local.log

命令看一下端口状态

如果结果是

 2018-07-23 18:35:01 INFO: udp port reuse enabled
 2018-07-23 18:35:01 INFO: listening at 127.0.0.1:1086
 2018-07-23 18:40:32 INFO: initializing ciphers... chacha20-ietf-poly1305
 2018-07-23 18:40:32 INFO: tcp port reuse enabled
 2018-07-23 18:40:32 ERROR: bind: Address already in use
 2018-07-23 18:40:32 ERROR: bind() error
 2018-07-23 18:40:42 INFO: initializing ciphers... chacha20-ietf-poly1305
 2018-07-23 18:40:42 INFO: tcp port reuse enabled
 2018-07-23 18:40:42 ERROR: bind: Address already in use
 2018-07-23 18:40:42 ERROR: bind() error

说明端口还是被占用,把偏好设置里的 http下的端口改成其他端口试试,改完之后要关闭shadowsocks再打开

@caoye ,十分感谢,亲测有效。

@caoye ,我试了下 端口没有被占用,
1086 1088 不行吗?

已解决:原来是我下错了app,我用的是ssr,应该是ng-r而不是ng。。。

我输入 curl --socks5 127.0.0.1:1086 ip.gs 之后 出现 Empty reply from server 咋办呀

@Eden-Lin 果然 mac的要去下ng-r

你好想问下 10.13安装的那个版本 我这个一直无法运行
image

用同一作者的另外一款软件,ng-r,适用于ssr,你现在不能用的是适用于ss的。

Eden

在 2018年8月19日,13:08,张子钊 notifications@github.com 写道:

你好想问下 10.13安装的那个版本 我这个一直无法运行


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

建议查看一下浏览器代理设置,是不是开了别的代理,需要禁用别的代理或者设置为系统代理才行

@caoye 按照你说的解决了,感谢!

@Eden-Lin 果然 mac的要去下ng-r
你好,请问你说的 ng-r 是什么意思,在哪里下载能发个链接吗,谢谢

~/Library/Logs/ss-local.log

我打开软件后 端口没被占用 也没有 这个文件
~/Library/Logs/ss-local.log

➜ ~ lsof -i :1086
➜ ~ curl --socks5 127.0.0.1:1086 ip.gs
curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

请教下一这是什么问题,谢谢

请问mac上ng-r客户端在哪儿下载啊?

github上有对应的mac,windows的安装包

------------------ 原始邮件 ------------------
发件人: "Sizhe Wei"notifications@github.com;
发送时间: 2019年9月25日(星期三) 晚上10:14
收件人: "shadowsocks/ShadowsocksX-NG"ShadowsocksX-NG@noreply.github.com;
抄送: "1595576349"1595576349@qq.com; "Mention"mention@noreply.github.com;
主题: Re: [shadowsocks/ShadowsocksX-NG] macOS系统10.13.5系统连接不上,服务没问题手机能连接上 (#855)

请问mac上ng-r客户端在哪儿下载啊?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

更坑的是我这里端口都没有被占用,使用命令访问 curl --socks5 127.0.0.1:1086 ip.gs 返回的也是服务器的地址。但是就是浏览器上无法访问外网。相当于是命令行可以访问,浏览器不行。

更坑的是我这里端口都没有被占用,使用命令访问 curl --socks5 127.0.0.1:1086 ip.gs 返回的也是服务器的地址。但是就是浏览器上无法访问外网。相当于是命令行可以访问,浏览器不行。

我找到原因了,是因为shadowsocks配置文件中,如果服务器是专有网络,/etc/shadowsocks.json 中的 server ip 是私有 ip, 而非公网 ip

更坑的是我这里端口都没有被占用,使用命令访问 curl --socks5 127.0.0.1:1086 ip.gs 返回的也是服务器的地址。但是就是浏览器上无法访问外网。相当于是命令行可以访问,浏览器不行。

我找到原因了,是因为shadowsocks配置文件中,如果服务器是专有网络,/etc/shadowsocks.json 中的 server ip 是私有 ip, 而非公网 ip

所以你是怎么解决的?

更坑的是我这里端口都没有被占用,使用命令访问 curl --socks5 127.0.0.1:1086 ip.gs 返回的也是服务器的地址。但是就是浏览器上无法访问外网。相当于是命令行可以访问,浏览器不行。

我找到原因了,是因为shadowsocks配置文件中,如果服务器是专有网络,/etc/shadowsocks.json 中的 server ip 是私有 ip, 而非公网 ip

所以你是怎么解决的?

不是说了吗? 如果是专有网络就是私有ip,如果公共网络就是公有ip

还是上不了网,麻蛋的

~/Library/Logs/ss-local.log

我打开软件后 端口没被占用 也没有 这个文件
~/Library/Logs/ss-local.log

➜ ~ lsof -i :1086
➜ ~ curl --socks5 127.0.0.1:1086 ip.gs
curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

请教下一这是什么问题,谢谢

请问老哥这个问题有解决办法了吗?我也遇到这个问题了

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gonejack picture gonejack  ·  4Comments

wyudong picture wyudong  ·  6Comments

jayzch picture jayzch  ·  5Comments

gnaixx picture gnaixx  ·  4Comments

likebeta picture likebeta  ·  6Comments