ASP.NET code to display a report of
client IP Address, Browser etc.
<%@ Page Language="VB"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<p>
<b>You are browsing
this site with:</b>
<%Response.Write(Request.ServerVariables("http_user_agent"))%>
</p>
<p>
<b>Your IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_addr"))%>
</p>
<p>
<b>The DNS lookup of
the IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_host"))%>
</p>
<p>
<b>The method used to
call the page:</b>
<%Response.Write(Request.ServerVariables("request_method"))%>
</p>
<p>
<b>The server's domain
name:</b>
<%Response.Write(Request.ServerVariables("server_name"))%>
</p>
<p>
<b>The server's port:</b>
<%Response.Write(Request.ServerVariables("server_port"))%>
</p>
<p>
<b>The server's
software:</b>
<% Response.Write(Request.ServerVariables("server_soft"))%>
</p>
</body>
</html>
Doest it run on Vb.net 2010?
ReplyDeleteyes sure
ReplyDeleteasp.net code in visual basic studio to display report of client ip add browser etc with steps pls
ReplyDeleteThank You and I have a nifty offer you: Who Repairs House Foundations remodel renovation
ReplyDelete