RDP Authentication failing on hostname but not IP address

Dimitri Stamatiadis 0 Reputation points
2024-03-28T05:56:57.0866667+00:00

We have a server where we can RDP to the device using IP address, but authentication fails if using the hostname. We also picked up using a period end will allow the login, eg hostname. or hostname.domain. It's as if when it authenticates, it's adding .domain.

We have tested DNS, all is correct there. Same settings as other servers not experiencing this issue. No windows updates between the time it worked and stopped. During testing, occasionally rebooting the server resolved the issue temporarily, but a few hours later the issue would return.

Any suggestions?

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,245 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 14,106 Reputation points Microsoft Vendor
    2024-03-29T08:53:36.09+00:00

    Hello,

    When you login as hostname, a server certificate will be verified (a default certificate), you can check if there's any issue on your server side on your certificate.

    You can open your local certificate by command "certlm.msc" , you can easily find the remote desktop certificate here. Confirm if you have a self-signed from your CA server and anything related.

    You can also check in your event log if there is any issue. To enable log, go to

    Event Viewer - > Microsoft -> Windows -> CAPI2 , and try to login again if there is any error on your certificate.


    If the Answer is helpful, please click "Accept Answer" and upvote it.