Search code examples
dotnetbrowser

Q: Does DotNetBrowser support socks5 authentication?


Using the code example provided here : https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110051-configuring-proxy works only with HTTP(S) proxy but not with socks5. Is there support for doing the same for SOCKS 5 ? Thanks


Solution

  • DotNetBrowser is based on the Chromium engine. Unfortunately, Chromium engine does not support SOCKS 5 authentication, so DotNetBrowser does not support such authentication as well.

    There is an issue in the Chromium bug tracker: https://bugs.chromium.org/p/chromium/issues/detail?id=256785

    As soon as we switch to a Chromium version where SOCKS 5 authentication support is available, we will add this implementation into DotNetBrowser too.

    As the workaround, you can try to create your own implementation of the ‘IProtocolHandler’ interface to handle the requests to the required proxy server using 3rd party libraries. However, please note that the requests cannot be handled in parallel, so the performance may be significantly reduced.

    The following article demonstrates how to register the custom protocol handler: https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000134504-custom-protocol-handler