Jump to content
Sign in to follow this  
twitchyliquid64

Ip problem: local, Global? Huh?

Recommended Posts

twitchyliquid64

Right. btw, Im pretty new to TCP.

Im doing a connection to exchange data between computers.

As I understand you need the recievers IP and port to connect to it.

My computer goes through a router so it has an internet IP of 202.XXX.13.50

But, so do all the other computers going through my router. There is also local ip's like 192.168.1.2.

My question is, how do you differenciate the computer to connect to, when 4 computers share the same Internet IP?


ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites
notsure

Portforwarding.

Share this post


Link to post
Share on other sites
twitchyliquid64

Portforwarding.

I see. So, does that mean that if I get the public IP and port correct, Ideally it should still connect?


ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites
notsure

I see. So, does that mean that if I get the public IP and port correct, Ideally it should still connect?

Look, it works like this;

[PC1; 192.168.1.1] --> [router 1; 212.222.111.122] ----------WWW---------> [router 2; 84.12.54.22] --> [PC2; 192.168.1.1]

It does not matter that both PC's have the same IP address because its a local IP address.

When you want to connect with PC1, to PC2 on port 12345 you have to forward port 12345 in router 2 to the internal IP address of PC 2. So you forward port 12345 to 192.168.1.1

Then when you decide to connect from PC1 to PC2, you have to use the external IP address to connect to, on port 12345.

Share this post


Link to post
Share on other sites
twitchyliquid64

Look, it works like this;

[PC1; 192.168.1.1] --> [router 1; 212.222.111.122] ----------WWW---------> [router 2; 84.12.54.22] --> [PC2; 192.168.1.1]

It does not matter that both PC's have the same IP address because its a local IP address.

When you want to connect with PC1, to PC2 on port 12345 you have to forward port 12345 in router 2 to the internal IP address of PC 2. So you forward port 12345 to 192.168.1.1

Then when you decide to connect from PC1 to PC2, you have to use the external IP address to connect to, on port 12345.

Ok. That makes sense.

Thanks for the Help everyone. Appreciate it.

#######Signing off,

Hypoz.


ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×