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
excel-vba code to change folder properties
The expression you entered has a function name that Microsoft Office Access can`t find.
Cannot Edit SQL Query Results
Problem with device installing in WXPe
popup dialogue box for a query
System Volume Information directory needs purging on Winodws SBS 2003 Server.
Vs2003 VB.NET I can't find ListItem
Windows 7 remote desktop causes black screen and am forced to cold boot
Not recognizing next years dates in Dataset Search
How to identify the correct globalization for date types ?