Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ive found a simple messanger example from this website but when attempting to use it on a different network over the internet it does not work. The server listens for connections from the remote IP and this works just fine when the client connects to the server through its local ip on the same network but when I send the file to my friend over the internet and try to connect using his remote ip and he uses my remote ip it does not want to connect. Could anyone be so kind to explain what my problem is. Thank you.

Okay, thanks for your response. How does aim and msn exactly work then?
Posted
Updated 16-Feb-10 20:01pm
v2

1 solution

Your problem is the modem/router(s) on the server end don't know what to do with a TCP connection request on the port the server component uses.

For example if the server is running on a computer with IP address 192.168.0.5 and using port 9000, the modem and router(s) need to be configured to forward any TCP connection requests from the internet on port 9000 to the computer at 192.168.0.5 using port forwarding.

No modem or router will automatically forward connection requests from the internet, they all have to be manually set up.

Also don't add further questions as answers, edit your original question.

For something like aim or msn the connection is initiated on your system to a remote server so you don't have to worry about opening/forwarding ports it's only an issue when you want to receive connections that did not have an original request originate from your local system.
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900