【已解决】新人求助 cpa 添加 codex 认证文件失败,能不能手搓认证文件
- 内容介绍
- 文章标签
- 相关推荐
本地搭建 cpa 之后,想要使用 Oauth 认证,提示失败,后台报错是
[2026-04-08 20:54:41] [--------] [error] [auth_files.go:1841] failed to start codex callback forwarder error=failed to listen on 127.0.0.1:1455: listen tcp 127.0.0.1:1455: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
应该是端口问题,查看本地端口占用,没有占用,但是查找端口排除列表就尬住了
PS C:\Users\Win> netstat -ano | findstr :1455
PS C:\Users\Win> netsh int ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
1050 1149
1150 1249
1250 1349
1350 1449
1450 1549
1550 1649
1662 1761
1802 1901
2180 2279
2869 2869
5357 5357
50000 50059 *
* - Administered port exclusions.
能不能手动修改回调端口,或者手搓配置文件,
本地搭建 cpa 之后,想要使用 Oauth 认证,提示失败,后台报错是
[2026-04-08 20:54:41] [--------] [error] [auth_files.go:1841] failed to start codex callback forwarder error=failed to listen on 127.0.0.1:1455: listen tcp 127.0.0.1:1455: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
应该是端口问题,查看本地端口占用,没有占用,但是查找端口排除列表就尬住了
PS C:\Users\Win> netstat -ano | findstr :1455
PS C:\Users\Win> netsh int ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
1050 1149
1150 1249
1250 1349
1350 1449
1450 1549
1550 1649
1662 1761
1802 1901
2180 2279
2869 2869
5357 5357
50000 50059 *
* - Administered port exclusions.
能不能手动修改回调端口,或者手搓配置文件,

