Connecting two PCs in different networks under different routers can be a bit tricky, but with the right steps, you can establish a connection between them. In this article, we will guide you through the process, providing easy-to-understand instructions for entry-level users.
Step 1: Determine the IP Addresses
The first step is to find out the IP addresses of both PCs. On each computer, open the Command Prompt by pressing the Windows key + R, typing "cmd" in the Run dialog, and hitting Enter. In the Command Prompt window, type "ipconfig" and press Enter. Look for the "IPv4 Address" under the network adapter you are using. Note down the IP address for each PC.
Step 2: Configure Port Forwarding
Next, you need to configure port forwarding on both routers. Port forwarding allows incoming connections from the internet to reach the correct PC on your local network.
Access your router's settings by entering its IP address in a web browser. The IP address is usually printed on the router itself or can be found in the documentation. Once you are on the router's settings page, look for the "Port Forwarding" or "Virtual Server" option.
Add a new port forwarding rule for each PC. Specify the IP address of the PC you want to connect to and choose a port number (e.g., 5000) for each rule. Save the settings and exit the router's settings page.
Step 3: Disable Firewalls
Firewalls can sometimes block incoming connections. To ensure a successful connection, temporarily disable the Windows Firewall or any other firewall software running on both PCs. Remember to re-enable the firewall once the connection is established.
Step 4: Test the Connection
Now it's time to test the connection between the two PCs. On one of the PCs, open a web browser and enter the public IP address of the other PC, followed by the port number you specified in the port forwarding rule (e.g., http://public_ip_address:5000). If everything is set up correctly, you should see a web page or some sort of response from the other PC.
Step 5: Establish a Remote Desktop Connection
If you want to establish a remote desktop connection between the two PCs, you can use the built-in Windows Remote Desktop feature.
On the PC you want to connect to, open the Control Panel and navigate to "System and Security" > "System" > "Remote settings." Enable the option for remote connections.
On the other PC, open the Remote Desktop Connection application by pressing the Windows key + R, typing "mstsc" in the Run dialog, and hitting Enter. Enter the public IP address of the PC you want to connect to and click "Connect." You may be prompted to enter login credentials for the remote PC.
That's it! You have successfully connected two PCs in different networks under different routers. Remember to re-enable any firewalls you disabled earlier to ensure the security of your network.
References
| Source | Link |
|---|---|
| Windows Central | https://www.windowscentral.com/how-use-remote-desktop-app-connect-pc-windows-10 |
| PortForward.com | https://portforward.com/ |