You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're porting C# code to NodeJS and found something is missing in the Node datagram API.
In C# we're using Socket.ReceiveMessageFrom to receive the datagram. In addition to the remote end point, we also get the IPPacketInformation which contains the destination address of the packet (== address of local interface that received the packet).
In C# we use this method to get connected with a 3rd party device:
we set up a UDP socket that's bound to IPAddress.Any
then we receive a discovery packet from the 3rd party device on one of the interfaces
we need to send back the local IP address of the interface where the packet arrived on, so the 3rd party device can initiate a TCP/IP connection to it.
Is there a way to achieve the same using the Node datagram API?
We're porting C# code to NodeJS and found something is missing in the Node datagram API.
In C# we're using
Socket.ReceiveMessageFromto receive the datagram. In addition to the remote end point, we also get theIPPacketInformationwhich contains the destination address of the packet (== address of local interface that received the packet).In C# we use this method to get connected with a 3rd party device:
IPAddress.AnyIs there a way to achieve the same using the Node datagram API?