123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computers >> View Article

Find A Visitor's Ip Address With Asp

Profile Picture
By Author: Sven Vdhrison
Total Articles: 3
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Do you want to know the IP address of a visitor? This can be useful for many reasons, such as tracking site usage or blocking access to specific people. Here's how you can find it.
Level: Beginner In an ASP page, within the ASP tags, , you can retrieve the IP address of a user through the ServerVariables collection of the Request object. To do this, you use the code Request.ServerVariables("REMOTE_ADDR"). Display The IP Address
So, if you want to display the IP Address to the user then the following page will suffice: Exploring Request.ServerVariables
You might be wondering what other information you can get from Request.ServerVariables, well you can find out with the following script which displays all the variables in it along with their values if set, in a HTML table:
<%@language="VBScript"%>
<table border="1">
<tr><th>Variable</th><th>Value</th></tr>
<%
Dim variable
For Each variable In Request.ServerVariables
   Response.Write "<tr><td>" & variable & "</td>"
   Response.Write "<td>" & Request.ServerVariables(variable) & "</td></tr>"
Next
%>
</table>
vdhri.net is a website dedicated to providing free lessons and tutorials in many programming languages.

Total Views: 90Word Count: 157See All articles From Author

Add Comment

Computers Articles

1. Spark Matrix™: Multi-carrier Parcel Management Solutions
Author: Umangp

2. Best Odoo Erp Software Company In Dubai For Business Growth
Author: Mayur Meheshwari

3. Top Challenges Faced By Equipment Rental Companies In The Uae — And How Erp Solves Them
Author: Al murooj solutions

4. Spark Matrix™: Intelligent Virtual Assistants (iva)
Author: Umangp

5. Pos Software Designed For Retail Operations
Author: EPOS Direct

6. Erp System That Reduces Stress And Improves Productivity
Author: Shalijah

7. Spark Matrix™: Global Service Parts Planning Application
Author: Umangp

8. Spark Matrix™: Enterprise Information Archiving
Author: Umangp

9. Textideo: Transforming Text Into Engaging Ai-powered Videos For Modern Creators
Author: Ethan Walker

10. Spark Matrix™: Enterprise Ai Search
Author: Umangp

11. What Identity Governance Really Means In Modern Enterprises
Author: Mansoor Alam

12. Strategies For Successful Site Selection In Clinical Trials
Author: Giselle Bates

13. Simplifying Business Purchases With Smart, Reliable Procurement Solutions
Author: suma

14. How Businesses In Dubai Are Scaling Faster With Modern Erp Software
Author: Al murooj solutions

15. How To Choose The Right Weapon Tracking System: 7 Must-have Features
Author: 3PL Insights

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: