Using Remote Desktop to connect to different computers behind same IP

  1. You can configure the port which each remote desktop is listening to. Change the port here for computer A and B:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
    
  2. Forward the ports to the corresponding computers.

  3. When you are connecting just specify the port: 7x.8x.1xx.2xx:23678