May 12, 2006 #1 markknowsley Programmer Joined Aug 30, 2005 Messages 152 Location GB Is it possible to write some C# that will pick up the ip address / hostname of the user who is accessing the web form?
Is it possible to write some C# that will pick up the ip address / hostname of the user who is accessing the web form?
May 12, 2006 #2 Guru7777 Programmer Joined Dec 10, 2003 Messages 331 Location US This article has a lot of information on tracking users to your site. Read further down the page for the explanation regarding ASP.Net rather than logs. (Note, this is in VB.Net, but can easily be converted) http://www.15seconds.com/issue/021119.htm ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ== Upvote 0 Downvote
This article has a lot of information on tracking users to your site. Read further down the page for the explanation regarding ASP.Net rather than logs. (Note, this is in VB.Net, but can easily be converted) http://www.15seconds.com/issue/021119.htm ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
Jun 5, 2006 #3 BrianB Programmer Joined Oct 2, 2000 Messages 186 Location US Just FYI, getting the host name at runtime can cause your application to fail if the DNS lookup fails. It is much better to log the IP and look it up later, when the user isn't waiting for your page to respond. Brian Begy BugSentry - Automatic error reporting for .NET and COM http://www.bugsentry.com Upvote 0 Downvote
Just FYI, getting the host name at runtime can cause your application to fail if the DNS lookup fails. It is much better to log the IP and look it up later, when the user isn't waiting for your page to respond. Brian Begy BugSentry - Automatic error reporting for .NET and COM http://www.bugsentry.com
Jun 5, 2006 #4 B00gyeMan Programmer Joined Jan 14, 2004 Messages 259 Location RO Which could also not be very helpful in case they use DHCP . It would help to track it only per session. Upvote 0 Downvote
Which could also not be very helpful in case they use DHCP . It would help to track it only per session.