To achieve your desired goal, you need to take two distince steps.
First, enable the Remote Desktop Protocol. Unfortunately there is no simple way to do this, so I will describe the path through the GUI. Open the control panel -> System and Security -> System -> Remote Settings -> Remote tab. Select any of the "Allow connections from...". If you like, limit it to certain users. Otherwise only administrator accounts will have access.
Microsoft offers a more involved how-to, Tip: Configure Remote Desktop Access on Windows 7 Systems.
Next, configure your firewall. Fortunately you can configure it through the command line interface. Open a command line interface with administrator rights and enter:
netsh advfirewall firewall add rule name = "Remote Desktop" Dir = in action = allow protocol = TCP localport = 3389 remoteip=192.168.0.111/24
Of course, replace the remoteip
with the right one. You can read more about netsh
in How to use the "netsh advfirewall firewall" context instead of the "netsh firewall" context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista.