zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.79k stars 2.36k forks source link

Unable to bind source IP to send data #4727

Open vectorzjl opened 3 months ago

vectorzjl commented 3 months ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

There are multiple IP addresses on one network port. I want to specify the source IP address to send data. However, after I bind the interface using the bind interface, the traffic I see through packet capture still shows the default IP address, which is not the one I specified. What is the reason for this problem?

Environment

Minimal test code / Steps to reproduce the issue

  1. N/A

What's the actual result? (include assertion message & call stack if applicable)

N/A

What's the expected result?

I hope to specify the source IP to send data, and display the source IP address I specified in the actual captured data packet