How can I determine if the user that's viewing a page is on the local network or not (ie myself, or anyone on my router).. I dont really wanna check the ip, is there any way besides checking teh ip?
Printable View
How can I determine if the user that's viewing a page is on the local network or not (ie myself, or anyone on my router).. I dont really wanna check the ip, is there any way besides checking teh ip?
bump:rolleyes:
buummp
anyone?
Well unless you are using Windows Authentication then the user will be ASP.NET. Since it by default runs as that or the generic user/group that IIS sets up (i.e. IWAM_COMPUTERNAME, IUSR_COMPUTERNAME). But all that aside you can use the User object of a page: Me.User.Identity.Name
umm ok I think I didnt quite explain what I wanted correctly:D
I dont care which user is logged in. I want to know if the person who's viewing a page is viewing it from my local network (ie my computer or anyone connected to my router), or if they are viewing it from some other location