Solved

Problem getting real IP Address of computer with ASP

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now