SQL PHP HTML ASP JavaScript articles and free scripts to download

How to get IP address of the visitor browser in ASP

We can collect IP address of the visitor by using Request object and its ServerVariable pairs. IP address of the user is required in many applications for different purposes. IP address are collected and logged for security purposes on different occasions like credit card process, member signup time etc. From the IP address we can identify the location of the visitor. However we will restrict ourselves only to know how to collect IP address of the visitor browser from the HTTP header information.

In PHP we can find out the IP address and details are here.

In ASP as we will use the http header information so it is better to read the full article on http header and request object here.

We will use http header name REMOTE_ADDR or REMOTE_HOST to get the IP address. Here is the code.

<%= Request.ServerVariables("REMOTE_ADDR")%>

The above IP value ( data ) can be used for various purposes.
Google+

Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer