eclipse-paho / paho.mqtt.c

An Eclipse Paho C client library for MQTT for Windows, Linux and MacOS. API documentation: https://eclipse.github.io/paho.mqtt.c/
https://eclipse.org/paho
Other
1.99k stars 1.1k forks source link

How do I get MQTT to support socks5 proxy? #1365

Open ArNiu2 opened 1 year ago

ArNiu2 commented 1 year ago

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

jumoog commented 1 year ago

with the current code you can't use socks5

ArNiu2 commented 1 year ago

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

icraggs commented 1 year ago

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

corsair626 commented 1 year ago

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.