butlerathens
New Member
I am developing a website with a time-clock system and i understand if the user is running the site in my network by getting his ip:\[code\]System.Web.HttpContext.Current.Request.UserHostAddress\[/code\]The problem is if the user runs the website from home by connecting his computer to another computer which is in his office.I need to detect if it is a remote desktop connection or not.I tried both \[code\]HttpContext.Current.Request.IsLocal\[/code\] and \[code\]System.Windows.Forms.SystemInformation.TerminalServerSession\[/code\] but these will return both \[code\]false\[/code\] if I run the published website in a Remote Desktop Connection. They work fine only when I build the website locally.Any ideas how to deal with this situation?