zeromq / netmq

A 100% native C# implementation of ZeroMQ for .NET
Other
2.95k stars 744 forks source link

Getting network interface card address when receiving message on bound sockets #970

Open mellexpro opened 3 years ago

mellexpro commented 3 years ago

Environment

NetMQ Version:    4.0.1.6
Operating System:  Windows 10 Pro build 18363
.NET Version:     .Net 5.0 and .Net Core 3.1

Context

When receiving messages from a socket that is bound to all network interfaces (like a router, resp or pub sockets) I would like to know from which network interface the message arrived on. The closest I got was to use the [socket].Options.LastEndpoint which will always return "0.0.0.0:[portNumber]", which is obviously not what I need.

Could someone point me in the right direction.

Thanks

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.