RDS WebClient through AppProxy failing for external access while using a program
Hi all,
I am having the same problems described in these following two articles with the web client failing while trying to open a remote program with old error “Oops, we couldn't connect to "app"
The connection to the remote PC was lost. This might be because of a network connection problem. If this keeps happening ask your admin or tech support for help" or the new error “The connection to the remote PC was lost. This might be because of a network connection problem. If this keeps happening, ask your admin or tech support for help”.
This happens only when a remote program is used through the web client and going through the App Proxy.
At current my lab:
I have set up a single server RDS farm that houses the gateway, broker, session host, and web client. I have done many DNS/App Proxy configuration iterations that I cannot keep track of any more (ongoing month of no fun). I have also tried different certificate types and settled on the custom wild card.
Server 2022 (new build including newest webclient, which looks weird)
RDS build is just the Quick Start
WildCard cert for all roles
Custom domain name (wildcard cert)
Same custom domain name for Internal/External FQDN
Internal DNS points to the RDS server on the LAN
External DNS points to proxy address (.msappproxy.net)
RD Gateway points to proxy address (.msappproxy.net)
Gateway Manager has 3389;443 opened for all RAP or CAP (per another article)
Entra app proxy URL’s internal and external both have the same custom domain name
From this prospective the external address is just to match the cert (just for show I think)
From this prospective the proxy address (.msappproxy.net) address points to the internal, LAN, custom domain
Pre-auth server set to proxy address (.msappproxy.net)
Resulting in:
Works fine internally
Externally we get connection error after trying to open remote port, takes only a few seconds in most cases.
(No fix in article)
https://learn.microsoft.com/en-us/answers/questions/1690961/trouble-with-remote-desktop-and-entra-app-proxy?comment=question#newest-question-comment
(Fix in article, but did not work for me)
https://learn.microsoft.com/en-us/answers/questions/996055/rds-webclient-through-appproxy-failing-for-externa
Any help here would be greatly appreciated, tired of tearing my hair out.
Thanks, Chad