Click here to Skip to main content
15,558,870 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello every body
i going to writing messenger like yahoo messenger that work on internet .
for this reason i learn socket programming in some last months.
i wrote two type of my program (windows application in C#.net 2010)
1. client version: that send and receive data on a special port.
2.Server Version :that listening to this port and answer to data that come from Client version and route data to another client.(like yahoo Messenger)
but these program work in LAN networks.

for additional my program has a Data base for conversation LOGs and...

the important part of my question is:
how i change my program to work on internet connections?

thank you very much.
javad naroogheh.
Posted

1 solution

No change is needed, except, perhaps, IP addresses (which you should never hard-code, anyway). Your service part, with its IP address and port, should be visible to Internet, that's it. For example, if you have firewalls on the way, they should be configured to allow the traffic with your protocol or port. Those are detail not related to your code itself.

—SA
 
Share this answer
 
v2
Comments
[no name] 12-Oct-12 14:16pm    
Right 5
Sergey Alexandrovich Kryukov 12-Oct-12 14:19pm    
Thank you, Wes.
--SA
javad naroogha 14-Oct-12 9:21am    
thank you
Sergey Alexandrovich Kryukov 14-Oct-12 21:21pm    
You are welcome.
As the question is answered, will you accept the answer formally (green button)? -- thanks.
--SA

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



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