Advertisement
kjacobsen

getip.ashx

Jun 29th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. // Code Snippet from aperturescience.su
  2. <%@ WebHandler Language="C#" Class="GenericHandler1" %>
  3.  
  4. using System;
  5. using System.Web;
  6.  
  7. public class GenericHandler1 : IHttpHandler {
  8.    
  9.     public void ProcessRequest (HttpContext context) {
  10.         context.Response.ContentType = "text/plain";
  11.         context.Response.Write(context.Request.UserHostAddress);
  12.     }
  13.  
  14.     public bool IsReusable {
  15.         get {
  16.             return false;
  17.         }
  18.     }
  19.  
  20. }
  21. // Code Snippet from aperturescience.su
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement