I\'m building what could be called the DAL for a new app. Unfortunately, network connectivity to the database is a real problem.
I\'d like to be able to temporarily
Just found an alternative that allows to directly close TCP connections:
http://lamahashim.blogspot.ch/2010/03/disabling-network-using-c.html
It is based on Windows IP Helper API (uses DllImport): http://msdn.microsoft.com/en-us/library/windows/desktop/aa366073(v=vs.85).aspx