Best Practices for Setting Up a Puppeteer Proxyserver with SOCKS5h: Any Tips?

18 Replies, 1564 Views

Hey! I had the same issue with puppeteer proxyserver socks5h. The key is to ensure your proxy supports DNS resolution over socks5h. If it doesn’t, you’ll run into issues.

For auth, I used the `proxy-chain` library. It’s super flexible and works well with puppeteer proxyserver socks5h. Here’s a snippet:
```javascript
const ProxyChain = require('proxy-chain');
const proxyUrl = 'socks5h://user:pass@proxyIP:port';
const newProxyUrl = await ProxyChain.anonymizeProxy(proxyUrl);
```
This handles auth and makes it easier to manage. Good luck!

Messages In This Thread



Users browsing this thread: 1 Guest(s)