Click here to Skip to main content
12,823,976 members (36,882 online)
Click here to Skip to main content
Add your own
alternative version


299 bookmarked
Posted 10 Jun 2005

An Introduction to Socket Programming in .NET using C#

, 10 Jun 2005
Rate this:
Please Sign up or sign in to vote.
In this article, we will learn the basics of socket programming in .NET Framework using C#. Secondly, we will create a small application consisting of a server and a client which will communicate using TCP and UDP protocols.


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

Software Developer (Senior) Buyagift Limited.
United Kingdom United Kingdom
Having completed my Bsc(Hons) in Computing from Staffordshire University U.K and Masters in Software Development and Security from Birmingham City University. I am now working as a Senior Software Engineer at Buyagift Limited - UK.

Mubashir Afroz.
Buyagift Ltd.

You may also be interested in...


Comments and Discussions

QuestionAsynchronous? Pin
Cristian Fuentes1-Sep-16 16:33
memberCristian Fuentes1-Sep-16 16:33 
Generalllj Pin
Member 122331197-Mar-16 23:55
memberMember 122331197-Mar-16 23:55 
QuestionMy vote of 5 Pin
Mike Hankey6-Apr-15 9:04
professionalMike Hankey6-Apr-15 9:04 
QuestionThankyou! Pin
Member 104531155-Mar-14 23:27
memberMember 104531155-Mar-14 23:27 
GeneralEasy to Understand for any programming level Pin
glaphanking24-Feb-14 14:31
memberglaphanking24-Feb-14 14:31 
GeneralRe: Easy to Understand for any programming level Pin
Hamish Ahern20-Sep-14 19:52
memberHamish Ahern20-Sep-14 19:52 
GeneralMy vote of 5 Pin
M Rayhan22-Jan-14 23:47
memberM Rayhan22-Jan-14 23:47 
GeneralRe: My vote of 5 Pin
balmerhevi26-Jan-14 21:14
memberbalmerhevi26-Jan-14 21:14 
QuestionGreat Pin
John Mike H.21-Aug-13 16:28
memberJohn Mike H.21-Aug-13 16:28 
GeneralMy vote of 5 Pin
nsraja2-Aug-13 9:08
membernsraja2-Aug-13 9:08 
Questions.close repeated twice Pin
TailGunCharlie31-Jul-13 0:41
memberTailGunCharlie31-Jul-13 0:41 
AnswerRe: s.close repeated twice Pin
Hamish Ahern20-Sep-14 19:49
memberHamish Ahern20-Sep-14 19:49 
GeneralMy vote of 5 Pin
hebsiboy29-Apr-13 2:47
memberhebsiboy29-Apr-13 2:47 
GeneralMy vote of 5 Pin
suramrit7-Feb-13 1:58
membersuramrit7-Feb-13 1:58 
Questioncommunication between 2 host with Private IPs, on differnt networks Pin
neelu777923-Oct-12 23:59
memberneelu777923-Oct-12 23:59 
AnswerRe: communication between 2 host with Private IPs, on differnt networks Pin
Jeppe M H4-Dec-12 21:36
memberJeppe M H4-Dec-12 21:36 
GeneralMy vote of 4 Pin
jashanprt10-Oct-12 17:38
memberjashanprt10-Oct-12 17:38 
GeneralMy vote of 5 Pin
hari1911310-Aug-12 8:13
memberhari1911310-Aug-12 8:13 
QuestionThanks Pin
Member 794342018-Jun-12 1:51
memberMember 794342018-Jun-12 1:51 
Questionlistening reserve port Pin
onlybj8-Feb-12 7:36
memberonlybj8-Feb-12 7:36 
QuestionChat Application without server/client relation Pin
Member 781598522-Sep-11 21:26
memberMember 781598522-Sep-11 21:26 
QuestionTCPclient with 18 connections its possible? Pin
Denis99994-Jul-11 22:47
memberDenis99994-Jul-11 22:47 
GeneralMy vote of 4 Pin
disha7027-Jan-11 22:58
memberdisha7027-Jan-11 22:58 
GeneralMy vote of 5 Pin
Member 160430015-Dec-10 1:11
memberMember 160430015-Dec-10 1:11 
GeneralMy vote of 3 Pin
Debashis Chowdhury (CUET)23-Nov-10 22:53
memberDebashis Chowdhury (CUET)23-Nov-10 22:53 

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 | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 11 Jun 2005
Article Copyright 2005 by .NETian
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid