Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 12-Oct-12 7:36am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2
Comments
Wes Aday at 12-Oct-12 14:16pm
   
Right 5
Sergey Alexandrovich Kryukov at 12-Oct-12 14:19pm
   
Thank you, Wes.
--SA
javad naroogha at 14-Oct-12 9:21am
   
thank you
Sergey Alexandrovich Kryukov at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 480
1 OriginalGriff 258
2 Bhavik_Patel 170
3 PhilLenoir 155
4 Richard Deeming 140
0 Sergey Alexandrovich Kryukov 8,688
1 OriginalGriff 7,237
2 CPallini 2,598
3 Richard MacCutchan 2,080
4 Abhinav S 1,888


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 14 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100