Solved Connect 2 PC behind NAT router/firewall (no port forwarding)

July 31, 2012 at 01:34:36
Specs: Windows 7
I need a guide to connect two PC that are both behind a NAT router/firewall (for either file sharing, VPN, or remote desktop), without tuning the setting on firewall/router as I have no access to the gateway. Here I attach the IP of the PCs and Gateways.

PC 1
private IP : 10.0.0.1

PC2
private IP: 192.168.0.1

Gateway A:
private IP: 10.0.0.254
public IP: 202.188.0.1

Gateway B:
private IP: 192.168.0.10
public IP: 204.250.2.254

Any help is appreciated.


See More: Connect 2 PC behind NAT router/firewall (no port forwarding)

Report •


#1
July 31, 2012 at 07:26:37
Since it seems you want a permanent connection I'll answer based on that assumption.

I suspect you'll have to add a second network interface to both PC's and directly connect them with a crossover cable Configure them to be in the same subnet (example: 172.16.0.1/24 and 172.16.0.2/24) and they should communicate.

However, windows frequently has problems dealing with a second active interface on the same machine that has a different gateway address so you may find it necesary to disable the external NIC in order to use the internal NIC.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#2
July 31, 2012 at 08:24:33
Hi Curt R,

Thank you for your reply. I am trying to connect two PCs that are geographically apart. So crossover cable will not work for me. For better understanding on my question, I am at my friend's house, with PC connected to my friend's NAT router, trying to connect to my own house PC, which is also behind NAT router. Any other solution for this?


Report •

#3
July 31, 2012 at 10:14:46
✔ Best Answer
This is why I asked for clarification!

am at my friend's house, with PC connected to my friend's NAT router, trying to connect to my own house PC, which is also behind NAT router

This is clear. What you originally posted made it sound like two PC's in the same physical location, but on different networks.

Yes, there is a solution. It's called "Remote Desktop Connection"

For example, we'll have you connect to your friend's computer. First, the computer being connected to has to have Remote Desktop enabled (Start >> Control Panel >> System >> Remote tab - check the box beside "Allow remote connections")

Then, you need to setup a "port forward" on your friend's router. To do so, you'll need the LAN IP of the computer you'll be connecting to and the port number of RDC...which is 3389. For example's sake, we'll say your friends computer's IP is: 192.168.0.100 you would create the port foreward on his router as follows:

Forward port 3389 to 192.168.0.100

Then, your friend needs to find out his external IP address as that's the one you would have to connect to (the LAN IP is behind the firewall right - ergo the port forward to the LAN IP). He can find out his external IP by googling "what's my IP"

Then you open RDC and enter his external IP address and click connect. If the port forward is done correctly, you'll be directed to his computer and asked to enter a username and password. You will probably want your friend to create an account on his PC for you to login with. He'll need to tell you the username/opassword obvioulsly......lol

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

Related Solutions

#4
July 31, 2012 at 11:23:36
What do you mean by "connect pc to pc"?

Like to share files?

The discussion to this point has been remote control of one pc by the other.
RDP requires port forwarding. Products like Teamviewer don't require port forwarding.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •


Ask Question