Original Post
[PC1][PC2][PC3]-------------->[ROUTER]---------(internet)--------->[SERVER / Webpage]
So, all the pcs have firefox running. The http port is 80, so all their input/output ports use 80 correct?
They each have 3 local IPS: 192.168.0.X , X = 2, 3, 4
When PC1 sends data to the router, what does it send? It's local IP and then some data (like a web address)?
Then when the webpage comes back to the router, what exact info does it have to know that this is a request from PC1 to tell the Router this packet is for PC1? Because as far as I know the server ONLY receives the Routers IP and sends data back to the Router, but that packet has to have some knowledge embedded from the SERVER that says here ROUTER, this is for PC1.
This is my setup:
[PC1][PC2][PC3]-------------->[ROUTER]---------(internet)--------->[ROUTER2]---------->[MY SERVER]
What I know:
ROUTER2's IP Address.
MY SERVER's LAN IP address.
The udp port that MY SERVER calls recv() on.
Without port forwarding, how do I get a packet to hit from PC1 to MY SERVER? I know that if I port forward ROUTER2 to translate packets based on port, it WILL receive PC1's request, and then when it sends a packet back to PC1, it magically gets there, so what is the magic part I need to know about PC1?
So, all the pcs have firefox running. The http port is 80, so all their input/output ports use 80 correct?
They each have 3 local IPS: 192.168.0.X , X = 2, 3, 4
When PC1 sends data to the router, what does it send? It's local IP and then some data (like a web address)?
Then when the webpage comes back to the router, what exact info does it have to know that this is a request from PC1 to tell the Router this packet is for PC1? Because as far as I know the server ONLY receives the Routers IP and sends data back to the Router, but that packet has to have some knowledge embedded from the SERVER that says here ROUTER, this is for PC1.
This is my setup:
[PC1][PC2][PC3]-------------->[ROUTER]---------(internet)--------->[ROUTER2]---------->[MY SERVER]
What I know:
ROUTER2's IP Address.
MY SERVER's LAN IP address.
The udp port that MY SERVER calls recv() on.
Without port forwarding, how do I get a packet to hit from PC1 to MY SERVER? I know that if I port forward ROUTER2 to translate packets based on port, it WILL receive PC1's request, and then when it sends a packet back to PC1, it magically gets there, so what is the magic part I need to know about PC1?