Press Win + R, enter ncpa.cpl. In the opened window with network connections, press Alt, a menu will appear at the top of the window. Go to "File", select "New incoming connection".
Next, select users who will be allowed to connect to the server, you can select existing ones or create new ones.
Put a tick "Via the Internet"
Here you can leave everything as it is.
After completing the configuration, "Incoming Connections" will appear in the network connections window
For such a VPN server to be accessible from the Internet, you need:
1. Have a "white" static IP.
2. If the computer is connected to a router, then forward port 1723 to the IP of the computer with the server.
In the client computer that will connect to the server, in "Network and Internet settings" we configure the VPN connection & nbsp; (using Win 10 as an example).
In the server address we write our "white" static IP, respectively, the login and password are the login and password of the account which we allowed to connect to the server.
When a client connects, a connection with a username will appear on the server, and its state will indicate the local IP addresses of both computers. That is, we have created a virtual local area network and can exchange files, etc. in the same way as in a regular local area network.
For example, if we want to get into the client's files from the server computer, we write its address in any explorer window and go. Likewise on the reverse side.