Nat Addressing & RDP question

in CCNA & CCENT
We all know that NAT Addressing is what allows our IP's to be private.
Because of this we dont waste millions of public ip's.
So because of this, this means It is possible I could have the same IP as someone else.
So with that said, if I was to remote into your computer after you gave me your IP, I can.
But how is that possible if I have the same IP as you or if you have the same IP as someone else?
Because of this we dont waste millions of public ip's.
So because of this, this means It is possible I could have the same IP as someone else.
So with that said, if I was to remote into your computer after you gave me your IP, I can.
But how is that possible if I have the same IP as you or if you have the same IP as someone else?
Comments
Well you'd give me your private ip. which is just your ip.
Whenever anyone gives out their IP, their giving out their private ip, unless their not behind NAT.
I would give you my public IP which would be forwarded to my private by the NAT device. When it got to my private it would have your public as the source, not your private.
I think you need a little more reading on NAT. You don't seem to be understanding correctly.
But what if i didnt configure anything on my router and it's already doing it? I'm connected directly to my modem provided by my ISP. My bro wants to connect to me, all he does is enter in the IP i gave him and bam, he's connected to me. There is another computer using the same network in this house wirelessly.
So back to the original question, how is he getting to my pc with just my ip when I never gave him my public ip or made configurations on my router?
On your brothers side it works a little different since the connection is outbound.
What IP address are you giving him?
If you are in a house with 24 rooms under one roof, you don't need to go outside to go from room to room.
If you tell him what room you are in, and as long as the door isnt locked and he knows how to get to that room then he can just walk right in. He doesnt need to know your public street address because he is already there.
Is it:
Internet <---> Modem <---> YourPC <--Wireless--> OtherPC
192.168.2.2
Internet -- Modem -- WAP -- PC or Wireless PC
You aren't using any vpn or anything?
That is the way it works for me at work. I connect to the vpn > I connect to my work machines private ip using rdp and it works. Are you guys using anything like that?
Im just going to jump in an give my pennies worth
NAT is used to help with the lack of ipv4 addresses, it is more than likely that you have the same private ip address as someone else, but these private ip addresses never leave the lan as they are not routable.
This is where the public ip address comes in, this ip address is unique to a company for example. If you are looking at RDP within a lan then you can just simply do that type in the private address that you are attempting to connect to and it will work.
However if you require an RDP over to another network i.e. a different company, you need to create a VPN connection to that network via the public ip addresses. With this connection established you are able to connect to any ip address even if its the same as yours.
Thats the way i see it, i may be totally wrong
Unless the public is NAT'ed, like terminal servers, then there is no need for a vpn.