Alright so I have a situation here and maybe someone could redirect me to an informative article somewhere about this because i've read and read and I can't seem to answer this question.
Have a private network here and looking to have services available to outside the lan. As in an external client is trying to connect.
For this port forwarding to work I know the port has to be open and the client has to know both the port and the gateway IP.
However, my question is how can you connect to a specific server on that private network? Say there are multiple computers on this network. How does the router know where to send the packets?
I had one thought that maybe when the server is set up it just automatically listens on that port so whenever a request comes in it just takes it off the routers hands right then and there although I'm not sure if that's correct or not.
Could anyone explain this further? Or point to an article that would explain this thoroughly?
Thanks in advance!! =)