The logon attempt failed when using Remote Desktop Connection

3

2

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?

apscience

Posted 2012-02-29T06:47:43.947

Reputation: 234

What ports did you forward? What is your network configuration? Is it just host -> router -> ISP? – thane – 2012-02-29T11:38:52.573

Yes, it is host -> router -> ISP and it's not a problem with my network as RDC can connect fine, just the password is wrong. – apscience – 2012-03-01T23:13:49.873

Answers

6

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>".

jdh

Posted 2012-02-29T06:47:43.947

Reputation: 6 645

If 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 – shufler – 2017-09-13T22:11:05.367

But why does 'username' work on 127.0.0.1 (on the host)? – apscience – 2012-03-01T23:15:12.803

Because 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. – jdh – 2012-03-02T01:20:43.940