how to get IP via JSP code

K

KK

Can anyone tell me the JSP code to get ip address of the site
visitors?
if yes plz let me know.

thanks

KK
 
D

Dave Miller

KK said:
Can anyone tell me the JSP code to get ip address of the site
visitors?
if yes plz let me know.

thanks

KK
You might want to get a copy of the API - it's how we find our way
around the class libraries. Under:

javax.servlet Interface ServletRequest

you'll find:

java.lang.String request.getRemoteAddr()
 
L

Lew

KK said:
thanks it helped..

The Javadocs familiarly do.

--
Lew


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
From Jewish "scriptures".

Baba Kamma 37b. The gentiles are outside the protection of the
law and God has "exposed their money to Israel."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top