The logon attempt failed when using Remote Desktop Connection
When you enter the login info, you need to enter the domain or machine the account is registered on. So if your remote host is "foo" and your client is "bar" and both have "administrator" accounts with different passwords, then specify "foo\administrator" (and then its PW) on the client connect side. The syntax is "<machine name> <back slash> <user name>".
Related videos on Youtube
Logan Spencer
Updated on September 18, 2022Comments
-
Logan Spencer almost 2 years
I enabled Remote Desktop Connection, forwarded the ports, the services are running, but I can't connect.
On the 'host' computer, running the client program for IP address 127.0.0.1 is successful. I enter my admin username and password, and I log in successfully.
On the actual computer I want to act like a client, connecting to my host's public IP address gives me a logon prompt. I enter the same username and password, but I get "The logon attempt failed".
How do I fix this?
-
thane over 12 yearsWhat ports did you forward? What is your network configuration? Is it just host -> router -> ISP?
-
Logan Spencer over 12 yearsYes, it is host -> router -> ISP and it's not a problem with my network as RDC can connect fine, just the password is wrong.
-
-
Logan Spencer over 12 yearsBut why does 'username' work on 127.0.0.1 (on the host)?
-
jdh over 12 yearsBecause when you are on the host, the hostname is the default source (used to lookup the login info). When using domains, this is the domain name that hosts the login database.
-
ricastro almost 7 yearsIf you don't know the hostname of the remote computer you can use the \username syntax (i.e. backslash username). This will tell the remote computer to use the local username account. To login as the local administrator account you can use \Administrator