Jsp Tutorial Home

Jsp Home

JSP Resources

Community

Site

 Getting Client Info

You can get information about a clients computer

Copy the code below and place in a file named: clientinfo.jsp

Run it from your browser -clientinfo.jsp

 

You should see the results of your submission



<html>

 

<head>

<!-- Example5 -->

<title>VisualBuilder.com</title>

 

</head>

<body>

Client computer details:

<br><br>

<b>Ip address</b>:

<br>

<%=request.getRemoteAddr()%>

<br><br>

<b>Computer name</b>:

<br>

<%=request.getRemoteHost()%>

<br><br>

</body>

</html>




                    

Copyright © 2013 VisualBuilder. All rights reserved