Solved

Problem getting real IP Address of computer with ASP

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

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…
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/…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

792 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