for some reason i'm getting "::1" instead of the ip.
the weird thing is:
when i run it with Visual Studio 2008 on a web project it works fine.
on Visual studio 2010 it does not work
i even open a 2008 project (that was working fine) with 2010 converted the files, left the framework on 3.5)
and it did not work.
even set the frame work to 3.5 on VS 2010 and still not working
also tried it on a single webform again 2008 working 2010 not working
same thing for Request.UserHostAddress
anyone?
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Request.ServerVariables["REMOTE_ADDR"]);
}
working on VS 2008 does not work on VS 2010