You can use the PySocks library to connect to your QuotaGuard Static SOCKS5 proxy as shown here. 


This code sample will print out one of your two static IP addresses by sending an HTTP request to the HTTP Bin service.

  

import socks
from urlparse import urlparse
import os

#Extract proxy connection details from env variable
proxy = urlparse(os.environ['QUOTAGUARDSTATIC_URL'])

s = socks.socksocket() 
s.set_proxy(socks.SOCKS5, proxy.hostname, 1080, True, proxy.username,proxy.password)
host = "httpbin.org"
s.connect((host, 80))
request = "GET /ip HTTP/1.1\nHost: "+host+"\nUser-Agent:Mozilla 5.0\n\n"
s.send(request)
response = s.recv(1024)
print response

   


If you have questions, or if this solution doesn’t work or fit your use case, please reach out to us at Support so we can help figure it out with you.


Working with sensitive data, like HIPAA, Financial, or Personally Identifiable Information (PII)? 
    Then you will want to check out our QuotaGuard Shield solution, it's the same as QuotaGuard Static, but with stronger end to end security for your requests. We can also help migrate current Static customers to Shield for free, just reach out to us at Support to request assistance.