paho.mqtt.c icon indicating copy to clipboard operation
paho.mqtt.c copied to clipboard

How do I get MQTT to support socks5 proxy?

Open ArNiu2 opened this issue 2 years ago • 4 comments

There is now a requirement to use a proxy to access the MQTT server,how do to?

ArNiu2 avatar May 31 '23 08:05 ArNiu2

with the current code you can't use socks5

jumoog avatar May 31 '23 09:05 jumoog

Do you have any suggestions for using Socks5 with MQTT lib?

ArNiu2 avatar Jun 01 '23 07:06 ArNiu2

The mosquitto client libraries apparently support socks 5 - https://mosquitto.org/api/files/mosquitto-h.html

icraggs avatar Jun 05 '23 09:06 icraggs

Some HTTP proxy (like privoxy for example) supports SOCKS forwarding so it is possible to setup privoxy acting as http proxy forwarding requests through SOCKS proxy.

corsair626 avatar Jun 26 '23 08:06 corsair626