vikash kumar Nov 22, 2022 545 Views
C#, asp.net
public static string
GetIPAddress
()
{
string
ipAddress =
.Empty;
HttpContext
.Current.Request.ServerVariables[
"HTTP_X_FORWARDED_FOR"
];
if
(
.
IsNullOrEmpty
(ipAddress))
"REMOTE_ADDR"
ipAddress = ipAddress.
Replace
"::ffff:"
,
""
);
"::1"
}
return
ipAddress;
Get Client IP address and location in asp.net C#
Encryption and Decryption in asp.net C#
Get random number in asp.net C#
Jan 29, 2023
Nov 22, 2022
Nov 21, 2022