[GH-ISSUE #3354] dial tcp 127.0.0.1:3389: connect: connection refused[Feature Request] #2681

Closed
opened 2026-05-05 13:43:45 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @1500256797 on GitHub (Mar 11, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3354

Bug Description

server端已经搭建完成 端口18189已经开放
client端已经注册到sever端,并且在dashboard上是正常的。

使用mstsc远程访问18189时候,查看c端的控制台,发现如下报错导致无法连接。本地使用局域网地址是可以连接这个c端机器的。3389端口也是ok的。
dial tcp 127.0.0.1:3389: connect: connection refused[Feature Request]

frpc Version

docker pull snowdreamtech/frpc

frps Version

docker pull snowdreamtech/frps

System Architecture

windows/amd64

Configurations

server端已经搭建完成 端口18189已经开放
client端已经注册到sever端,并且在dashboard上是正常的。

使用mstsc远程访问18189时候,查看c端的控制台,发现如下报错导致无法连接。本地使用局域网地址是可以连接这个c端机器的。3389端口也是ok的。
dial tcp 127.0.0.1:3389: connect: connection refused[Feature Request]

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @1500256797 on GitHub (Mar 11, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3354 ### Bug Description server端已经搭建完成 端口18189已经开放 client端已经注册到sever端,并且在dashboard上是正常的。 使用mstsc远程访问18189时候,查看c端的控制台,发现如下报错导致无法连接。本地使用局域网地址是可以连接这个c端机器的。3389端口也是ok的。 dial tcp 127.0.0.1:3389: connect: connection refused[Feature Request] ### frpc Version docker pull snowdreamtech/frpc ### frps Version docker pull snowdreamtech/frps ### System Architecture windows/amd64 ### Configurations server端已经搭建完成 端口18189已经开放 client端已经注册到sever端,并且在dashboard上是正常的。 使用mstsc远程访问18189时候,查看c端的控制台,发现如下报错导致无法连接。本地使用局域网地址是可以连接这个c端机器的。3389端口也是ok的。 dial tcp 127.0.0.1:3389: connect: connection refused[Feature Request] ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:43:45 -06:00
Author
Owner

@Becods commented on GitHub (Mar 11, 2023):

dial tcp 127.0.0.1:3389: connect: connection refused

检查127.0.0.1:3389是否有程序在监听

<!-- gh-comment-id:1465026184 --> @Becods commented on GitHub (Mar 11, 2023): `dial tcp 127.0.0.1:3389: connect: connection refused` 检查`127.0.0.1:3389`是否有程序在监听
Author
Owner

@1500256797 commented on GitHub (Mar 12, 2023):

C:\Users\jianjianjianjian>netstat -a

活动连接

协议 本地地址 外部地址 状态
TCP 0.0.0.0:135 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:445 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:2179 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:3389 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:5040 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:7680 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:19531 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49664 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49665 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49666 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49667 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49668 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49669 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:49670 DESKTOP-N2B3HNP:0 LISTENING
TCP 0.0.0.0:57778 DESKTOP-N2B3HNP:0 LISTENING
TCP 127.0.0.1:7890 DESKTOP-N2B3HNP:0 LISTENING

<!-- gh-comment-id:1465080668 --> @1500256797 commented on GitHub (Mar 12, 2023): C:\Users\jianjianjianjian>netstat -a 活动连接 协议 本地地址 外部地址 状态 TCP 0.0.0.0:135 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:445 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:2179 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:3389 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:5040 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:7680 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:19531 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49664 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49665 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49666 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49667 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49668 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49669 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:49670 DESKTOP-N2B3HNP:0 LISTENING TCP 0.0.0.0:57778 DESKTOP-N2B3HNP:0 LISTENING TCP 127.0.0.1:7890 DESKTOP-N2B3HNP:0 LISTENING
Author
Owner

@lee-cq commented on GitHub (Mar 30, 2023):

如果你使用的是Docker,那么你可能需要注意下Docker网络的连通性是否正常。

Docker内部的IP地址和主机的IP地址是不一样的,frpc 使用的127.0.0.1 时容器内部的地址,而容器内应该并没有监听3389端口(它在你的主机上)。

解决方案:容器中的FRPC不要使用127.0.0.1 而是使用你的局域网IP地址。

<!-- gh-comment-id:1489865635 --> @lee-cq commented on GitHub (Mar 30, 2023): 如果你使用的是Docker,那么你可能需要注意下Docker网络的连通性是否正常。 Docker内部的IP地址和主机的IP地址是不一样的,frpc 使用的127.0.0.1 时容器内部的地址,而容器内应该并没有监听3389端口(它在你的主机上)。 解决方案:容器中的FRPC不要使用127.0.0.1 而是使用你的局域网IP地址。
Author
Owner

@github-actions[bot] commented on GitHub (Apr 30, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1528906311 --> @github-actions[bot] commented on GitHub (Apr 30, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
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: github-starred/frp#2681
No description provided.