mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3988] [Feature Request] DDNS IP更新后掉线 #3165
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SingletC on GitHub (Feb 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3988
Describe the feature request
当服务端使用ddns ip变动后 client需要重启服务才能正常通信
Describe alternatives you've considered
使用定时重启可以解决但是会有断线时间
Affected area
@MANKUD commented on GitHub (Feb 14, 2024):
Hello @SingletC
Assuming that you FRP client is a windows machine I have written a powershell script for you which you can run as a batch file by saving it as a batch file with any name.
Run the batch scipt at regular intervals say every 5 min using windows task scheduler to automatically restart service if the IP address pointing to you DDNS changes and as a additional feature I have added automatically update DNS servers for current network adapter to cloudflare dns that is 1.1.1.1 & 1.0.0.1 and flush dns both are automatically done when the DDNS current IP address changes.
@SingletC commented on GitHub (Feb 14, 2024):
I much appreciate your help; I did not test the above code. But I assume it will work.
It will be easy to let the client query the IP address of a domain instead of caching it. You can close the thread if this feature seems unnecessary.
@MANKUD commented on GitHub (Feb 14, 2024):
@SingletC I am having issues sharing the code here give me some time I will post it here.
@MANKUD commented on GitHub (Feb 14, 2024):
@SingletC Here you go a link to downlod my batch script.
https://www.zippyshare.day/ZnzuZ715lWYguC5/file
@MANKUD commented on GitHub (Feb 14, 2024):
let me know if this works for you. @SingletC
@superzjg commented on GitHub (Feb 17, 2024):
我有一台frps(arm64)公网ip被运营商更新时,动态域名更新可能不及时,我的另外2台frpc(一台arm,一台arm64),通常会断线几分钟到十几分钟,然后自动重新连上,并不需要重启。
@github-actions[bot] commented on GitHub (Mar 10, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.