Remote Desktop Connection over Internet
First Step for Remote Desktop Connection
First you need to set your system or server to access over local network.
Add fix local ip address while connecting wifi or from tcp ipv4.
Then you need to open port forward using that fixed ip address in your main modem.
Then you check your local public ip address from searching on google. OR use this website https://www.ipchicken.com/
Then you can type that public ip address and port number in remote desktop connection to access any of your system using user name and passwer.
There are also some helpful settings in group policy for connection rdp.
39.36.160.180:3389
3389 is default port for RDP. You can change it by choosing any ip which is not used in this link
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
before opening port then you can open port using the port number that you have added into your registory editor.
REGISTORY EDITOR LINK IS AS FOLLOWS.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp