Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get Client Ip address?

28 views
Skip to first unread message

Muneeb kiani

unread,
Jan 22, 2012, 1:38:10 AM1/22/12
to
I want to know that how can we know the IP address of client on server
side in socket (java). Suppose there is a server "S" and 2 clients "A"
and "B". Client A send me(server) some info, and Client B send
me(server) some other info. I have to store that info coming from A
and B in database in different tables. How can I Differentiate between
client A and B request.?

faxser...@gmail.com

unread,
May 8, 2012, 4:10:10 AM5/8/12
to
csocket.getRemoteSocketAddress().toString();
0 new messages