Results 1 to 3 of 3

Thread: winsock multiple client wiht same ip and different port with a server

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2011
    Location
    Mumbai
    Posts
    206

    winsock multiple client wiht same ip and different port with a server

    HIIIII

    i am using winsock with as server and multiple client its working fine

    Now in my project i want multiple client to be created so i have created multiple client with same ip but having different port no

    Can winsock send data to such client possessing same IP but different port

    i want to create multiple dummy client at same PC can it be done & can winsock send data to all those client carrying same ip

    Or is there any alternative to do this
    NAMO NANASHA

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: winsock multiple client wiht same ip and different port with a server

    One Winsock control sends data to same IP, same port number.
    Multiple Winsock controls can send data to multiple ports but only one IP on same PC.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  3. #3
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: winsock multiple client wiht same ip and different port with a server

    Also note that all of those clients would be set to use the same port and that would be the port that the server is listening on once the server accepts the request the client is then assigned a socket to talk to the server on and the server keeps listening for more connection requests on the original port.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width