How to create proxies programmatically during network congestion?