Hi,
I was wondering if someone could give me some general pointers about creating client server applications that would be able to communicate with each other over not just the LAN which I am able to do, but would be able to communicate with each other and exchange filestreams over the internet, meaning in most cases communication with PC's behind a router and / or a gateway server. I have applications that can send messages to each other and send filestreams to each other via socket ;however, these applications only take into account the IP address of the client and server applications and the port the socket is on, so I assume that I need to use the external IP of the router the application is behind and a port number on that connection perhaps? Can someone please point me in the right direction and tell me what I need to be trying to do (provide terms usable for a good google search, sample code, your own explanation) so that I can communicate with applications over the internet behind a router?
Thanks in advance!
I was wondering if someone could give me some general pointers about creating client server applications that would be able to communicate with each other over not just the LAN which I am able to do, but would be able to communicate with each other and exchange filestreams over the internet, meaning in most cases communication with PC's behind a router and / or a gateway server. I have applications that can send messages to each other and send filestreams to each other via socket ;however, these applications only take into account the IP address of the client and server applications and the port the socket is on, so I assume that I need to use the external IP of the router the application is behind and a port number on that connection perhaps? Can someone please point me in the right direction and tell me what I need to be trying to do (provide terms usable for a good google search, sample code, your own explanation) so that I can communicate with applications over the internet behind a router?
Thanks in advance!
Comment