I have a webservice written in c#. I simply want to handle (intercept) all connection attempts in order to validate the client IP.

How do you handle a connection attempt in a webservice?