Solved

Problem getting real IP Address of computer with ASP

Posted on 2004-09-13
2
291 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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