userid = Convert.ToInt64(SessionManager.LoggedInUserID); IPHostEntry host; string localIP = "?"; host = Dns.GetHostEntry(Dns.GetHostName()); foreach (IPAddress ip in host.AddressList) { if (ip.AddressFamily.ToString() == "InterNetwork") { localIP = ip.ToString(); } }
string localIP = Request.UserHostAddress;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)