[GH-ISSUE #3840] 设置域名后,mstsc远程桌面,电脑通过域名+端口无法访问,但ip+端口可正常访问 #3054

Closed
opened 2026-05-05 13:58:34 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Z46I4W5476SJA on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3840

Bug Description

我在服务器上部署了frp,然后在frps.toml中配置了subDomainHost为主域名,在windows客户端配置了subdomain = "company",然后用mstsc远程桌面通过company+主域名+端口,无法连接成功,但通过ip+端口,可以正常访问,我ping了一下company.主域名也是可以正常解析到对应的ip,所以想来问问各位大佬 可能是什么原因 找了好久没有找到原因

frpc Version

frp_0.52.3_windows_amd64

frps Version

frp_0.52.3_linux_amd64

System Architecture

linux/amd64, windows/amd64

Configurations

frps.toml:
bindPort = 36224
auth.token = "zx946894"
subDomainHost = "xxxxx.top"

frpc.toml
serverAddr = "xx.xx.xx.xxx"
serverPort = 36224
auth.token = "zx946894"

proxies
name = "company"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = 6002
subdomain = "company"

Logs

mac通过rd连接windwos时候,提示:
Your session ended because of an error. If this keeps happening, contact your network administrator for assistance.
Error code: 0x4

windows通过mstsc连接时候,可以正常输入密码,最后一步连接失败

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 @Z46I4W5476SJA on GitHub (Dec 13, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3840 ### Bug Description 我在服务器上部署了frp,然后在frps.toml中配置了subDomainHost为主域名,在windows客户端配置了subdomain = "company",然后用mstsc远程桌面通过company+主域名+端口,无法连接成功,但通过ip+端口,可以正常访问,我ping了一下company.主域名也是可以正常解析到对应的ip,所以想来问问各位大佬 可能是什么原因 找了好久没有找到原因 ### frpc Version frp_0.52.3_windows_amd64 ### frps Version frp_0.52.3_linux_amd64 ### System Architecture linux/amd64, windows/amd64 ### Configurations frps.toml: bindPort = 36224 auth.token = "zx946894" subDomainHost = "xxxxx.top" frpc.toml serverAddr = "xx.xx.xx.xxx" serverPort = 36224 auth.token = "zx946894" [[proxies]] name = "company" type = "tcp" localIP = "127.0.0.1" localPort = 3389 remotePort = 6002 subdomain = "company" ### Logs mac通过rd连接windwos时候,提示: Your session ended because of an error. If this keeps happening, contact your network administrator for assistance. Error code: 0x4 windows通过mstsc连接时候,可以正常输入密码,最后一步连接失败 ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Z46I4W5476SJA commented on GitHub (Dec 13, 2023):

终于找到了原因,域名没有备案导致无法连接成功,如果有遇到相同问题的问,希望可以你们提供参考

<!-- gh-comment-id:1853360610 --> @Z46I4W5476SJA commented on GitHub (Dec 13, 2023): 终于找到了原因,域名没有备案导致无法连接成功,如果有遇到相同问题的问,希望可以你们提供参考
Author
Owner

@fsleo commented on GitHub (Mar 6, 2024):

感谢,我也遇到这个问题。我是mac在本机设置了hosts,自己乱定了一个域名,比如:al.dev 指向我的服务器,而且发现ssh是没有问题的,但是rdp结果不行,研究了半天,直到看到你的这个,rdp 要用ip连接才行。

<!-- gh-comment-id:1981127990 --> @fsleo commented on GitHub (Mar 6, 2024): 感谢,我也遇到这个问题。我是mac在本机设置了hosts,自己乱定了一个域名,比如:al.dev 指向我的服务器,而且发现ssh是没有问题的,但是rdp结果不行,研究了半天,直到看到你的这个,rdp 要用ip连接才行。
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#3054
No description provided.