[GH-ISSUE #1999] 映射微软rdp服务时可以使用域名访问吗? #1593

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

Originally created by @justcode288 on GitHub (Sep 21, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1999

今天第一次使用frp,感觉很好用!

我家里电信宽带,有公网ip,但是是动态的,并且已通过QNAP实现了DDNS域名解析。
我单位有一台windows桌面版,没有公网ip。
我需要在单位外面用微软rdp(域名+端口号)连接单位的windows桌面。

我按网上的教程,在家里openwrt路由器搭建了frps,在单位openwrt路由器搭建了frpc,并成功实现在单位外通过公网ip地址+端口号访问单位的机器。

但问题是我家里的公网ip是动态的,ip变了之后,需要重新配置单位frpc配置文件的服务器ip。我看到网上的subdomain都是用于web服务,没有看到域名用于微软rdp服务的,我自己尝试了几次没有成功,请问大佬我该如何操作呢?

Originally created by @justcode288 on GitHub (Sep 21, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1999 今天第一次使用frp,感觉很好用! 我家里电信宽带,有公网ip,但是是动态的,并且已通过QNAP实现了DDNS域名解析。 我单位有一台windows桌面版,没有公网ip。 我需要在单位外面用微软rdp(域名+端口号)连接单位的windows桌面。 我按网上的教程,在家里openwrt路由器搭建了frps,在单位openwrt路由器搭建了frpc,并成功实现在单位外通过公网ip地址+端口号访问单位的机器。 但问题是我家里的公网ip是动态的,ip变了之后,需要重新配置单位frpc配置文件的服务器ip。我看到网上的subdomain都是用于web服务,没有看到域名用于微软rdp服务的,我自己尝试了几次没有成功,请问大佬我该如何操作呢?
Author
Owner

@justcode288 commented on GitHub (Sep 21, 2020):

已解决。

<!-- gh-comment-id:696082508 --> @justcode288 commented on GitHub (Sep 21, 2020): 已解决。
Author
Owner

@justcode288 commented on GitHub (Sep 24, 2020):

有人问我是怎么解决的,我回复一下:
按照没有域名只有ip地址的教程正常配置好frps和frpc,假如此时你已经可以使用ip地址+端口号使用微软rdp服务访问内网windows主机了;然后配置好ddns,意思是让你的动态公网ip有一个固定的域名(我使用阿里云的ddns因为快、稳定),这时你就可以使用域名+端口号使用微软rdp服务了。就这么简单。

<!-- gh-comment-id:698305627 --> @justcode288 commented on GitHub (Sep 24, 2020): 有人问我是怎么解决的,我回复一下: 按照没有域名只有ip地址的教程正常配置好frps和frpc,假如此时你已经可以使用ip地址+端口号使用微软rdp服务访问内网windows主机了;然后配置好ddns,意思是让你的动态公网ip有一个固定的域名(我使用阿里云的ddns因为快、稳定),这时你就可以使用域名+端口号使用微软rdp服务了。就这么简单。
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#1593
No description provided.