You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\FRP> C:\FRP\frpc.exe -c C:\FRP\frpc.toml
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
2025-01-16 11:44:28.478 [I] [sub/root.go:142] start frpc service for config file [C:\FRP\frpc.toml]
2025-01-16 11:44:28.489 [I] [client/service.go:295] try to connect to server...
2025-01-16 11:44:28.490 [W] [client/service.go:298] connect to server error: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.
2025-01-16 11:44:28.499 [I] [sub/root.go:160] frpc service for config file [C:\FRP\frpc.toml] stopped
login to the server failed: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.. With loginFailExit enabled, no additional retries will be attempted
这里一个很明显的问题是 frpc 在尝试连接 0.0.0.0:7000 (dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.)。但是我 frpc.toml 配置里 serverAddr = "公网ip" ,网上教程基本都是这样写的,甚至官方给的参考配置也是这样的,我几乎找遍了全网都不知道怎么回事。最后我想到了可能是 serverAddr 使用了默认值,因为 serverAddr 默认值是 0.0.0.0 ,我尝试着改为旧版本的 server_addr ,结果 frpc 正常启动。
Bug Description
在配置完 frpc.toml 后,我尝试启动 frpc 服务,得到报错如下:
这里一个很明显的问题是 frpc 在尝试连接 0.0.0.0:7000 (dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.)。但是我 frpc.toml 配置里 serverAddr = "公网ip" ,网上教程基本都是这样写的,甚至官方给的参考配置也是这样的,我几乎找遍了全网都不知道怎么回事。最后我想到了可能是 serverAddr 使用了默认值,因为 serverAddr 默认值是 0.0.0.0 ,我尝试着改为旧版本的 server_addr ,结果 frpc 正常启动。
下面是我的配置:
我想知道为什么会出现这种问题呢,我 frps 和 frpc 都使用的是最新版本 0.61.1。
frpc Version
0.61.1
frps Version
0.61.1
System Architecture
windows/amd64
Configurations
~
Logs
No response
Steps to reproduce
...
Affected area
The text was updated successfully, but these errors were encountered: