Category Archives: Web Design

Create IIS with .ASP Web Pages that show Client IP Address

  1. Enable Microsoft Windows Server with ASP: see instructions here:
  2. Create your .html file as required
  3. Add the code below to the .html file
  4. Rename the file to .asp
  5. Make sure your IIS website has your file listed as a default page : see here:
  6. Browse to your site


Code for showing IP address

<div> Client Source IP address is:

<% Response.Write(Request.ServerVariables(“REMOTE_ADDR”)) %>


Code for showing al variables:

<table border=”1″ width=”500″ style=”border-collapse: collapse”>
For each item in Request.ServerVariables
Response.Write(“<tr><td>” & item & “</td><td>”)
Response.Write(“</td></tr>” & vbCrLf)

Above code from this website: