when ever you want to find the IP Adress of client use one of these two Response.Write(Request.UserHostAddress) or
Response.Write(Request.ServerVariables(“LOCAL_ADDR”))
But remember one thing you have to access this web page with server address as
http://yourSyatemIP(or)Servername/projectName/page.aspx
not with localhost likeĀ
http://localhost/projectName/page.aspx
Below code is to find the Different types of server variables
Dim NameArray() As String
Dim VisitorSV As NameValueCollection
Dim I As Integer
VisitorSV = Request.ServerVariables
NameArray = VisitorSV.AllKeys
For I = 0 To UBound(NameArray)
Response.Write(“<br>”)
Response.Write(NameArray(I) & “: ” & VisitorSV.Item(I) & “<BR>”)
Next
I agreed with you
[...] – bookmarked by 2 members originally found by shunkoh on 2008-11-23 Client IP Address http://brammam.wordpress.com/2008/07/09/client-ip-address/ – bookmarked by 4 members originally [...]