Solved

Problem getting real IP Address of computer with ASP

Posted on 2004-09-13
2
289 Views
Last Modified: 2012-06-22
Hi all

I'm having a problem getting real IP address with ASP of my computer on which IIS is running  

I'm using :
Request.ServerVariables("LOCAL_ADDR")
or
Request.ServerVariables("REMOTEL_ADDR")

but they both return 127.0.0.1 which is a localhost IP , but I need to get  real IP address
of my computer in the network

Thank you in advance
0
Comment
Question by:KaliGal
2 Comments
 
LVL 1

Accepted Solution

by:
ashokkswamy earned 125 total points
ID: 12042984
Kaligal,

Pl Check whether the server(with IIS) is assigned with an IP Address and exists in network.

Also note that,
Request.ServerVariables("REMOTE_ADDR") - will give the client machine's IP Address and
Request.ServerVariables("LOCAL_ADDR") - will always give the Server's IP Address.

0
 

Author Comment

by:KaliGal
ID: 12043358
Thank you ashokkswamy  
I've got the difference between REMOTE_ADDR and  LOCAL_ADDR
and it helped

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question