Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET4
hi!! i need to create a client server based software (desktop)...

there would be multiple client with different ipaddress but same port number...

eg-

client A has ip:172.21.5.2 with port number:5555
client B has ip:172.21.5.3 with port number:5555
client C has ip:172.21.5.4 with port number:5555
client D has ip:172.21.5.5 with port number:5555

and

server has ipddress:172.21.5.1 with port number:5555

now i need to create a communicate link between client A,B,C and D with the server...

 

 
could someone please help me...

Thanks in Advance...
Posted 11-Mar-13 6:43am
Comments
ryanb31 at 11-Mar-13 11:53am
   
What part do you need help with?
Member 7849477 at 11-Mar-13 12:22pm
   
thanks for the reply..
 
i need simple example to connect a single server with multiple clients... :)
ryanb31 at 11-Mar-13 12:23pm
   
There may be articles on this site, I would search them. I would also search google for examples and then if you get stuck on something specific, come ask here.
Member 7849477 at 11-Mar-13 12:26pm
   
k..
could you give me the steps required for creating a client/server communication..
ryanb31 at 11-Mar-13 12:28pm
   
There are a lot of steps, more than I can go into here. You need some sort of socket control, decided on which protocol to use, then define how your messages will be formatted, get some sort of UI, decide if you want a server or if it will be peer-to-peer, etc.
Member 7849477 at 11-Mar-13 12:32pm
   
thanks
also, is it possible to commmunicate with multiple client with different ipaddress but same port number...
ryanb31 at 11-Mar-13 12:50pm
   
Sure, I wrote a chat application years ago in VB6 using the winsock control. You can broadcast out to multiple IPs.
Richard MacCutchan at 11-Mar-13 12:19pm
   
Google for "sockets C++" and you will find many samples.

1 solution

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

Solution 1

For some very basic ideas, please see my past answers:
Multple clients from same port Number[^],
an amateur question in socket programming[^].
 
—SA
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 11 Mar 2013
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