The computer in the network needs to have a static IP address.
Also under system properties under the Remote tab check the box under the remote desktop section and use the button to select an account that you will use to log in remotely.
You also have to open the port in windows firewall and in any software firewall you may have loaded on the machine by adding a rule or exception.
(the default port for remote desktop is 3389. you can change that number in the registry so that you can set up more than one machine to be logged in to remotely.)
i also like to go to the windows firewall control panel and under the advanced tab i click on ICMP and check the first box, or else the computer will remain 'quiet' and hidden in the network, and that might make you unable to log into the machine remotely.
in the router/firewall you have to set up port forwarding. if you have not changed the default port of 3389 then map 3389 to the ip address (statically assigned) of the machine you want to access remotely.
Also edit the rights of the account you will use to log in and make sure they are a member of the 'remote desktop users' group or 'administrators'.
Finally to log in to the computer that you have set up you use ":"
If this is the only machine you have set up for remote access then you can log in to it by using just the wan ip and not the port number.