Skip to content

Does it Support socks5://IP_ADDRESS:PORT@USER:PASS"? #3118

Answered by mdmintz
STARKILLER-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Chromium doesn't support SOCKS5 authenticated proxies (https://issues.chromium.org/issues/40829748).

For socks4 or socks5 proxies, use these formats for the proxy_string:

Unauthenticated:

  • socks4://IP_ADDRESS:PORT

  • socks5://IP_ADDRESS:PORT

Authenticated:

  • socks4://USER:PASS@IP_ADDRESS:PORT

If you're using Wire Mode (which DOES NOT support UC Mode), there's a possible workaround:

from seleniumbase import Driver

def set_proxy():
    driver.proxy = {
        "http": "socks5://user:pass@ip:port",
        "https": "socks5://user:pass@ip:port",
        "no_proxy": "localhost,127.0.0.1",
    }

driver = Driver(wire=True)
try:
    set_proxy()
    driver.get("https://ipinfo.io/")
    driver.s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@STARKILLER-1
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants