Click here to Skip to main content
13,894,465 members
Click here to Skip to main content
Add your own
alternative version


57 bookmarked
Posted 18 Mar 2001

Chat program

, 2 Dec 2002
Rate this:
Please Sign up or sign in to vote.
Simple chat program.

Sample Image - CSocket.jpg


This very simple Chat program was written by using VC++ 6 under Windows 2000. CSocketCli program creates a client socket. CSocket program creates a server socket. If you run the client program, you must specify the address of the other computer in the IP Address editbox in "the server program".

If the client is running but the server isn't running, you will receive an error in the editbox down in the client program, but if you connect you will receive "Connected" message in the chat editbox in the client program.

When you run the server, you don't need to do any thing; just wait until some client program connects with the server. This program handles multiple clients and you can have private chat with friends.

Important note: If you run the Client and the Server in the same computer, please write in the client IP Address textbox the address, then press Connect button and you will be connected to the server.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

essam el-nagar
Software Developer (Senior)
Saudi Arabia Saudi Arabia
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionHello! Pin
Member 103101355-Oct-13 3:06
memberMember 103101355-Oct-13 3:06 
QuestionThank you for easy to follow code for Client and Server Sides... Pin
Destiny7779-Feb-13 12:46
memberDestiny7779-Feb-13 12:46 
GeneralFirewall Pin
AlexEvans21-Aug-10 23:22
memberAlexEvans21-Aug-10 23:22 
GeneralRe: Firewall Pin
Destiny7779-Feb-13 12:41
memberDestiny7779-Feb-13 12:41 
Questionhow are you Pin
cen_jin_long22-Feb-10 12:41
membercen_jin_long22-Feb-10 12:41 
GeneralDownload = 0kb Pin
codeinelogic8-Jan-09 7:53
membercodeinelogic8-Jan-09 7:53 
GeneralRe: Download = 0kb Pin
codeinelogic8-Jan-09 8:02
membercodeinelogic8-Jan-09 8:02 
GeneralThank you. Pin
Member 232736913-May-08 22:01
memberMember 232736913-May-08 22:01 
Generalhome edition Pin
vishal dhir24-Feb-07 20:16
membervishal dhir24-Feb-07 20:16 
Questionhow to use it in campus Pin
Member 368157930-Dec-06 0:05
memberMember 368157930-Dec-06 0:05 
Questionhow to use it in campus Pin
Member 368157930-Dec-06 0:04
memberMember 368157930-Dec-06 0:04 
Questionwhat is socket programming Pin
mahili19-Nov-06 21:28
membermahili19-Nov-06 21:28 
AnswerRe: what is socket programming Pin
kkyaw8823-Feb-07 10:45
memberkkyaw8823-Feb-07 10:45 
Generalvery usefull Pin
fserdary9-Aug-06 4:51
memberfserdary9-Aug-06 4:51 
Generalgood code Pin
Sujitmatrix2-May-06 4:21
memberSujitmatrix2-May-06 4:21 
Generalexcellent sample code Pin
Thomas Abegglen22-Mar-06 22:15
memberThomas Abegglen22-Mar-06 22:15 
GeneralCMD Pin
Pablo9836-Mar-06 11:37
memberPablo9836-Mar-06 11:37 
Generalgood job~~ Pin
rosenus12-Feb-06 4:58
memberrosenus12-Feb-06 4:58 
GeneralCheck the status Wether Connect to the internet or not Pin
Kutti Ra30-Sep-05 23:07
memberKutti Ra30-Sep-05 23:07 
Generalover the internet Pin
12-Mar-05 5:44
suss12-Mar-05 5:44 
GeneralRe: over the internet Pin
Xiaozhou Ye6-Nov-05 21:10
memberXiaozhou Ye6-Nov-05 21:10 
Questionhow to make one application work as a server and client simultaneously Pin
syaks29-Nov-04 7:19
membersyaks29-Nov-04 7:19 
AnswerRe: how to make one application work as a server and client simultaneously Pin
Destiny7779-Feb-13 12:54
memberDestiny7779-Feb-13 12:54 
GeneralTransmit Image File Pin
Keel15-Jan-04 20:15
memberKeel15-Jan-04 20:15 
GeneralIPnr in list box Pin
JockeP24-Aug-03 18:41
memberJockeP24-Aug-03 18:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.190306.1 | Last Updated 3 Dec 2002
Article Copyright 2001 by essam el-nagar
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid