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);
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)](https://user-images.githubusercontent.com/8725148/205607951-02ba1f53-f27c-4613-b52e-2bfb33a06b6a.png)