How to identify the number of clients in server

Hai

Iam trying a network program to identify the number of clients which accessing the server. I dont no how to identify the number of clients which accessing the server through server machine. I want to identify the client machine ip or name. If you have any idea help for me.

Regards

A.KRaj

[320 byte] By [AKRaja] at [2007-10-2 21:19:00]
# 1
You can keep a ArrayList of active connections and store the IP address of the incoming connection in the Server. You have to do this everytime you accept a connection.
Neeraj.Malhotraa at 2007-7-14 0:28:07 > top of Java-index,Core,Core APIs...
# 2
Thanks for you response What is the command to identify the client ip through server?RegardsA.K.Raj
AKRaja at 2007-7-14 0:28:07 > top of Java-index,Core,Core APIs...
# 3
You can use getInetAddress() API on the socket returned by accept().
Neeraj.Malhotraa at 2007-7-14 0:28:07 > top of Java-index,Core,Core APIs...