Click here to Skip to main content
12,699,054 members (25,006 online)
Rate this:
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 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 8:36am

1 solution

Rate this: bad
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.

Wes Aday 12-Oct-12 14:16pm
Right 5
Sergey Alexandrovich Kryukov 12-Oct-12 14:19pm
Thank you, Wes.
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 14 Oct 2012
Copyright © CodeProject, 1999-2017
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