Results 1 to 2 of 2
- 12-13-2007, 01:39 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 1
- Rep Power
- 0
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.
- 12-20-2007, 09:18 AM #2
Member
- Join Date
- Dec 2007
- Location
- Roggwil, Switzerland
- Posts
- 8
- Rep Power
- 0
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
-
Server socket - send image to client
By Hinty in forum NetworkingReplies: 2Last Post: 03-14-2009, 07:39 AM -
(Server)Socket application deploying
By mdinant in forum NetworkingReplies: 0Last Post: 04-09-2008, 05:10 PM -
socket Multithreading - & - Obtaining the IP of a client!
By bluebarca in forum NetworkingReplies: 1Last Post: 11-16-2007, 10:09 AM -
Simple example Client Server Application
By ferosh in forum NetworkingReplies: 1Last Post: 04-01-2007, 10:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks