[GH-ISSUE #58] How to change BindAddr in ckserver.json? #50

Closed
opened 2026-02-26 12:33:49 +03:00 by kerem · 5 comments
Owner

Originally created by @0x696c757a696f on GitHub (Sep 21, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/58

previous config is

{
  "ProxyBook": {
    "shadowsocks": "127.0.0.1:8388",
  },
  "BypassUID": [
    "1rmq6Ag1jZJCImLBIL5wzQ=="
  ],
  "RedirAddr": "204.79.197.200:443",
  "PrivateKey": "EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=",
  "AdminUID": "5nneblJy6lniPJfr81LuYQ==",
  "DatabasePath": "userinfo.db"
}

It works, but it uses default port 443, I want to use port 8443.
I changed to this

{
  "ProxyBook": {
    "shadowsocks": "127.0.0.1:8388",
  },
  "BypassUID": [
    "1rmq6Ag1jZJCImLBIL5wzQ=="
  ],
  "BindAddr":[":8443"],
  "RedirAddr": "204.79.197.200:443",
  "PrivateKey": "EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=",
  "AdminUID": "5nneblJy6lniPJfr81LuYQ==",
  "DatabasePath": "userinfo.db"
}

It doesn' work in ip:8443, but works in ip:443(Shadowsocks client)
How to solve this?

Originally created by @0x696c757a696f on GitHub (Sep 21, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/58 previous config is ``` { "ProxyBook": { "shadowsocks": "127.0.0.1:8388", }, "BypassUID": [ "1rmq6Ag1jZJCImLBIL5wzQ==" ], "RedirAddr": "204.79.197.200:443", "PrivateKey": "EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=", "AdminUID": "5nneblJy6lniPJfr81LuYQ==", "DatabasePath": "userinfo.db" } ``` It works, but it uses default port 443, I want to use port 8443. I changed to this ``` { "ProxyBook": { "shadowsocks": "127.0.0.1:8388", }, "BypassUID": [ "1rmq6Ag1jZJCImLBIL5wzQ==" ], "BindAddr":[":8443"], "RedirAddr": "204.79.197.200:443", "PrivateKey": "EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=", "AdminUID": "5nneblJy6lniPJfr81LuYQ==", "DatabasePath": "userinfo.db" } ``` It doesn' work in ip:8443, but works in ip:443(Shadowsocks client) How to solve this?
kerem closed this issue 2026-02-26 12:33:49 +03:00
Author
Owner

@malikshi commented on GitHub (Sep 21, 2019):

2.0.2 still using old config.

<!-- gh-comment-id:533771237 --> @malikshi commented on GitHub (Sep 21, 2019): 2.0.2 still using old config.
Author
Owner

@cbeuw commented on GitHub (Sep 21, 2019):

Did you run Cloak as a Shadowsocks plugin? If so, change the port in Shadowsocks' config to 8443

<!-- gh-comment-id:533786738 --> @cbeuw commented on GitHub (Sep 21, 2019): Did you run Cloak as a Shadowsocks plugin? If so, change the port in Shadowsocks' config to 8443
Author
Owner

@0x696c757a696f commented on GitHub (Sep 21, 2019):

Did you run Cloak as a Shadowsocks plugin? If so, change the port in Shadowsocks' config to 8443

I uses binary release of 2.0.2.
I changed Shadowsocks-libev's config, port changed to 8443, but in shadowsocks-client, it still works in ip:443.

config.json

{
"server":"0.0.0.0",
"server_port":8443,
"password":"XXXXXX",
"timeout":300,
"user":"nobody",
"method":"xchacha20-ietf-poly1305",
"fast_open":true,
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp"
}

ckserver.json

{
"ProxyBook":{
"shadowsocks":
"127.0.0.1:8443"
},
"BypassUID":[],
"RedirAddr":"XXXXXX:443",
"PrivateKey":"XXXX",
"AdminUID":"XXXXX",
"DatabasePath":"/etc/cloak/db/userinfo.db"
}

<!-- gh-comment-id:533789734 --> @0x696c757a696f commented on GitHub (Sep 21, 2019): > > > Did you run Cloak as a Shadowsocks plugin? If so, change the port in Shadowsocks' config to 8443 I uses binary release of 2.0.2. I changed Shadowsocks-libev's config, port changed to 8443, but in shadowsocks-client, it still works in ip:443. config.json ``` { "server":"0.0.0.0", "server_port":8443, "password":"XXXXXX", "timeout":300, "user":"nobody", "method":"xchacha20-ietf-poly1305", "fast_open":true, "nameserver":"8.8.8.8", "mode":"tcp_and_udp" } ``` ckserver.json ``` { "ProxyBook":{ "shadowsocks": "127.0.0.1:8443" }, "BypassUID":[], "RedirAddr":"XXXXXX:443", "PrivateKey":"XXXX", "AdminUID":"XXXXX", "DatabasePath":"/etc/cloak/db/userinfo.db" } ```
Author
Owner

@cbeuw commented on GitHub (Sep 21, 2019):

Does it also listen on 8443 as well or only 443?

If you are starting ck-client up from command line you can change its listing port with -p 8443

<!-- gh-comment-id:533804371 --> @cbeuw commented on GitHub (Sep 21, 2019): Does it also listen on 8443 as well or only 443? If you are starting ck-client up from command line you can change its listing port with -p 8443
Author
Owner

@0x696c757a696f commented on GitHub (Sep 22, 2019):

I used the latest binary release 2.1.1 of both Cloak and Cloak-Android,and added "BindAddr":[":8443"] in ckserver.json, problem solved. Thanks.

<!-- gh-comment-id:533839610 --> @0x696c757a696f commented on GitHub (Sep 22, 2019): I used the latest binary release 2.1.1 of both Cloak and Cloak-Android,and added "BindAddr":[":8443"] in ckserver.json, problem solved. Thanks.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#50
No description provided.