Can anyone help a novice get IP address from the JSP in Forms?
I found some sample code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ExtractRemoteAddr extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
// Write other information if necessary
out.println(request.getRemoteAddr()); // sets the information in the response flow
}
}
I can not find information, how can this java code to use in Forms. And how to get this Remoute address. There are people in the know?
Thank you!