Forums

ASP

This topic is locked

Identify IP Address

Posted 19 Dec 2002 11:39:18
1
has voted
19 Dec 2002 11:39:18 Roger Yong posted:
Any one know how to identify IP Address when the user fill in the online form in different computer?

e.g. I have one upload and fill in form, and when the user click on submit button and go to the details page which contain all the information the user filled in AND included the IP Address.

It is a good example if you have a hotmail address. You can tell the IP address when you recieved the email.

What is the code to identify the IP address? any Idea?



Edited by - rycbn on 19 Dec 2002 11:40:31

Replies

Replied 19 Dec 2002 17:47:22
19 Dec 2002 17:47:22 Brent Colflesh replied:
Dear Rycbn,
Response.write the following variable in a hidden field & pass it with your form:

Request.ServerVariables("REMOTE_ADDR"

Regards,
Brent

Replied 07 Apr 2010 07:49:42
07 Apr 2010 07:49:42 hema nagaveni replied:
You can get the ip address here www.ip-details.com/
If you need detail of that ip address get here www.whoisxy.com/ It's provides whois information of an ip address or domain name....
Replied 12 Jan 2012 07:40:20
12 Jan 2012 07:40:20 vincent victor replied:
ASP without Proxy detection
<%
ipaddress = Request.ServerVariables("REMOTE_ADDR"
%>

ASP with Proxy detection
<%
ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR"
if ipaddress = "" then
ipaddress = Request.ServerVariables("REMOTE_ADDR"
end if
%>
This reply was removed on 3/16/2012 8:40:23 AM.
See the changelog
This reply was removed on 3/16/2012 8:40:29 AM.
See the changelog
This reply was removed on 3/16/2012 8:40:37 AM.
See the changelog
This reply was removed on 4/16/2012 8:50:53 AM.
See the changelog
This reply was removed on 5/4/2012 10:49:14 AM.
See the changelog
Replied 09 Jul 2012 04:19:41
09 Jul 2012 04:19:41 adum paul replied:
Nice article.

------------
Web design company India

Reply to this topic