Hi!!!
you don;t post your code !!! can you post the are you using and below code can capture the Ip Address like this:
HttpRequest currentRequest = HttpContext.Current.Request;
string ipAddress = currentRequest.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipAddress == null || ipAddress.ToLower() == "unknown")
ipAddress = currentRequest.ServerVariables["REMOTE_ADDR"];
return ipAddress;
or like this
String ipAddress =
System.Web.HttpContext.Current.Request.UserHostAddress;
take a look of this link
http://www.c-sharpcorner.com/uploadfile/krishnasarala/find-client-ip-address-and-location-in-Asp-Net/[
^]