Do not use on any
shared computer
August 29, 2008 10:05pm pdt
 
[x]
Attachment Details

How to capture application server ip address?

Tags: Microsoft Dot Net Framework 2.0, 2.0
I am developing a web application using Microsoft Dot Net Framework 2.0 ( Asp.net/ Vb.Net),  I need to capture application host server Ip address, but not the server name.
I have used  System.Web.HttpContext.Current.Request.ServerVariables.Item("LOCAL_ADDR"). I am able to capture ip address when access the page from remote machine. But if I access the application on the same applicatoin server, I am getting as "local host" instead of the ip address.
But I need to get the ip address of the application server machine, irrespective of whether I access the application on the same server or different machine.
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: SunnySchema
Question Asked On: 08.08.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by TheLearnedOne

Rank: Sage

Expert Comment by TheLearnedOne:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by TimCottee
Expert Comment by TimCottee:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628