This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » ASP » Identify IP Address
Reply

Identify IP Address

Roger Yong
Member



Since: 21 Feb 2002
Posts: 8
Posted 19 Dec 2002 11:39:18

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

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
Brent Colflesh
Locked
Total freaking Member



Since: 18 May 2001
Posts: 280
Replied 19 Dec 2002 17:47:22
Dear Rycbn,
Response.write the following variable in a hidden field & pass it with your form:

Request.ServerVariables("REMOTE_ADDR"

Regards,
Brent

hema nagaveni
Member



Since: 07 Apr 2010
Posts: 1
Replied 07 Apr 2010 07:49:42
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....
vincent victor
Member



Since: 11 Jan 2012
Posts: 1
Replied 12 Jan 2012 07:40:20
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
%>

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency