eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.1k stars 880 forks source link

It is recommended to add the client IP that can be specified when establishing a TCP connection #970

Open jaysooong opened 1 year ago

jaysooong commented 1 year ago

v3 1.2.5

After I connected the VPN locally, mqtt clinet could not connect to the remote broker. However, after specifying the client's IP when establishing a TCP connection, the connection can be successful, so this recommendation is made。 eg: Socket socket = new Socket(remoteAddr,1883,localAddr,0); 1670234174(1)