brilliant-limeB
Apify & Crawlee11mo ago
3 replies
brilliant-lime

Using BrightData's socks5h proxies

BrightData's datacenter proxies can be used with socks5 but only with remote dns resolution, thus the protocol should be given like socks5h://...

Testing it with curl works, but using it in crawlee it doesn't work. Just keeps hanging.

    proxyConfiguration: new ProxyConfiguration({
      newUrlFunction: () => {
        return 'socks5h://brd-customer-...-zone-...:...@brd.superproxy.io:22228';
      },
    })


Any idea how it should work?

Edit: since I use CamouFox, I tried:

        firefoxUserPrefs: {
          'network.proxy.socks_remote_dns': true,  // Enable remote DNS resolution
        },


But it still just hangs.
Was this page helpful?