Page 1 of 1

Finding IP

Posted: Thu Mar 03, 2011 5:37 am
by lakesh
Hi,
I am developing a site as a part of my project work.As a part of it my site should store the ip address of the person who visiting the site...can u please suggest me how to find out the person ip address who is visiting dynamically...?

Re: Finding IP

Posted: Thu Mar 03, 2011 7:50 am
by Chrispcritters
What programming language are you using (ASP, PHP)?

Re: Finding IP

Posted: Thu Mar 03, 2011 7:54 am
by lakesh
jsp

Re: Finding IP

Posted: Thu Mar 03, 2011 8:10 am
by Chrispcritters
request.getRemoteAddr()

Should return the client's IP address.