1

is it possible to create a python code so that when runned it will connect the computer to a specific proxy (knowing the proxy IP and the port)...

just like the manual connection method in windows , you put the proxy ip and the port and it will connect you , i need a code that will do everything so that you don't need to go to setting > network> proxy>...

P.s : using python 2.7

  • 1
    Possible duplicate of [Proxy connection with Python](https://stackoverflow.com/questions/16703936/proxy-connection-with-python) – Aleks Andreev Sep 01 '17 at 17:47
  • @AleksAndreev I don't think so because the OP is talking about a proxy change in the PC, not how to make Python access Internet through a proxy. –  Sep 01 '17 at 17:52

1 Answers1

0

You can write a Python script using subprocess module to execute netsh winhttp commands.