& ColdFusion?
The IP address is available from the web server variable "REMOTE_ADDR".
ASP without Proxy detection
«
ipaddress = Request .ServerVariables ("REMOTE
ASP with Proxy detection
ipaddl
Af tpad
address ~ Request Server Variables ("REMOTE_ADDR")
everVariables (*#272_X_FORWARDED_FOR";
PHP without Proxy detection
sipad
8 = geteny (REY
PHP with Proxy detection
LE (getenv(HT2P_Xx_FORMARDED_FOR))
OR
Sipaddress ~ getenv (REMOTE_ADDR);
JSP without Proxy detection
tRenoteadér ()
quest .getHeade:
ColdFusion without Proxy detection
‘COMPONEN?>
paddress:
Remote Addr4">ColdFusion with Proxy detection
NEN2>
Rade §">
warded
ASP.NET (C#) with Proxy detection
public string Tpaddress()
t
string strip;
strip = Request.Servervariables|
Af (strip = null!
‘
1
P_X_FORWAR
ASP.NET (VB.NET) without Proxy detection
ASP.NET (VB.NET) with Proxy detection
Function IpAddrees ()
trip As string
Servervariables ("#
_X_FORNARDED_FOR")
Please visit hitp:l'vww.ip2location.com for more information about IP address
geolocation products and services,
About IP2Location.com
Founded in 2001, P2Location.com provides Internet infrastructure intelligence services to online
businesses, |P2Location.com's products provide the geographic location of Web site visitors in
real-time, enabling businesses to display localized content, bandwidth balancing, improve click-
through and sales, prevent fraud, conduct site analysis and foster regulatory compliance. With
over 4000 industry leading customers, IP2Location.com is one of the market leaders in the geo-
location industry. IP2Location.com's main headquarters is located in Penang, Malaysia, with
regional sales office located in Florida, United States.