Retrieving client country,ip

My client is in javascript ie) i am using jwchat.It is running under resin.So I want to get the client’'s ip,country.

I have tried to get those client information using plugin.But it’'s showing the ipaddress of resin.

Hi Preetha,

What are you using to get the client’'s ip? Something like the following should work:

ClientSession#getConnection().getInetAddress().getHostAddress();

/code

Hope that helps,

Ryan

where will i put this code? i also wanted to get the ip address of the webchat client to appear on the live agent clients