Results 1 to 2 of 2
  1. #1
    masadjie is offline Member
    Join Date
    Dec 2007
    Posts
    1
    Rep Power
    0

    Default Identify Client in Socket Client Server Application

    Hi All, I am new in Java. So please help me to this thing.

    I created client server application with socket. After the server running then I create several client and connecting to the server. the problem is how to identify which client among the others? For example if I need to transfer an image to a specific client which identity i have to used?

    Can I used a socket thread to identify ?

    I can not use IP Address of client because an IP (client machine) could run more than one client application.


    Thanks in advance.

  2. #2
    daprodigy is offline Member
    Join Date
    Dec 2007
    Location
    Roggwil, Switzerland
    Posts
    8
    Rep Power
    0

    Default

    hello

    hmm, that's a hard one ...

    if you have to run more than one client apps on the same physical machine, you have to provide a "manager" who knows which client has to receive the image. imagine to create a manager-class like a proxy-server. send the image-request to the manager, the manager itself deals with the server-application and passes the image back to the appropriate client-application.

    from the network sight, all client-application have the same ip-address. so you have to do the rest on the client machine, i think.

    hope i could help you ...

    greets,
    daprodigy

Similar Threads

  1. Server socket - send image to client
    By Hinty in forum Networking
    Replies: 2
    Last Post: 03-14-2009, 07:39 AM
  2. (Server)Socket application deploying
    By mdinant in forum Networking
    Replies: 0
    Last Post: 04-09-2008, 05:10 PM
  3. Replies: 1
    Last Post: 11-16-2007, 10:09 AM
  4. Simple example Client Server Application
    By ferosh in forum Networking
    Replies: 1
    Last Post: 04-01-2007, 10:36 AM

Posting Permissions

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