views:

35

answers:

1

I'm using HttpListener. I want to only process requests however that come locally, not from another machine/server.

How would I programmatically verify if an incoming request is local for sure? For example would it be using some of the HttpListenerRequest members?

+1  A: 

Check with RemoteEndPoint property if the remote address of the request equals 127.0.0.1.

BalusC