Microsoft
Software
Hardware
Network
Question : How to capture application server ip address?
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.Cur
rent.Reque
st.ServerV
ariables.I
tem("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.
Answer : How to capture application server ip address?
I would think that you might get 127.0.0.1 from this:
Dim ipAddress As String = System.Net.Dns.GetHostEntr
y("localho
st").Addre
ssList(0).
ToString()
Random Solutions
System error &H8007008 (-2147024888) not enough storage available to rocess this command
SQL- Find the diferrence, above or below target
How do I remap a key to "Tab" in Access 2007 form?
VFP9R.DLL file is invalid or damaged
Active X Can't Create Component
App Stops at breakpoint after they have been removed
Drive letter flash drive
Getting the error: The Ordinal 685 could be not located in the dynamic link library iertutil.dll
SSIS Package - Script Component question - remove leading spaces
Debug Export to Excel and Run Macro