fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
80.5k stars 12.74k forks source link

serverAddr 配置域名连接不上,用IP就可以 #4195

Closed dossec closed 1 week ago

dossec commented 2 weeks ago

Bug Description

serverAddr 配置域名连接不上,用IP就可以连接,报错如下 ,有时候多重试几次又能连了,之前用的版本0.48版本的域名连接一直没问题 connect to server error: session shutdown

frpc Version

0.57.0

frps Version

0.57.0

System Architecture

linux/amd64

Configurations

serverAddr = "frp.xxx.com" serverPort = 17000 loginFailExit = false

auth.method = "token" auth.token = "12345678"

webServer.addr = "192.168.123.99" webServer.port = 7400 webServer.user = "admin" webServer.password = "admin"

log.to = "./frpc.log"

log.level = "info"

log.maxDays = 3

[[proxies]] name = "newpve8" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6050

Logs

2024-04-30 09:04:38.139 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] 2024-04-30 09:04:38.139 [I] [client/service.go:294] try to connect to server... 2024-04-30 09:04:38.155 [W] [client/service.go:297] connect to server error: read tcp 192.168.123.99:36722->x.x.x.x:17000: read: connection reset by peer 2024-04-30 09:04:40.336 [I] [client/service.go:294] try to connect to server... 2024-04-30 09:04:40.354 [W] [client/service.go:297] connect to server error: session shutdown 2024-04-30 09:04:44.855 [I] [client/service.go:294] try to connect to server... 2024-04-30 09:04:44.869 [W] [client/service.go:297] connect to server error: session shutdown 2024-04-30 09:04:54.444 [I] [client/service.go:294] try to connect to server...

Steps to reproduce

  1. ...

Affected area

xqzr commented 2 weeks ago

https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440