In my web application, whenever there\'s an exception I log it to a file, along with various info about the request. One of these bits of info is HttpRequest.UserHostA
HttpRequest.UserHostA