eclipse-paho / eclipse-paho/paho.mqtt.java

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

Open
#970 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.