Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem getting real IP Address of computer with ASP

Posted on 2004-09-13
2
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
ashokkswamy earned 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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/…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

704 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