How to create a windows remote desktop program lives forever no 6 hour limit on github which can be accessed by remote desktop program in windows or mobile(microsoft rdp)

Guide me to develop a rdp of windows which runs forever without stop/kill as priorly I have used or hosted rdp which lasts for 6:00 Hours only.Also anyone can tell me the workflow/jobs lifetime (how much they can last) (time period of running)

I used it for 1 hour and it turned off automatically