I am trying to use the n2n node that @dceejay created quite a few years ago. But it seems that the n2n input node only outputs payload. Here are some code examples:
No. The whole idea of the node was to send as little data as possible between nodes only when needed. It uses udp so everything has to fit in a single data packet.
Of course you can use a function node in front to generate a payload that contains the original payload plus other properties as you wish.
The hostip is set from the incoming packet remote.address - eg - UDP/datagram sockets | Node.js v23.3.0 Documentation so is what the socket sees. If you want to pass anything else you would need to add it to the payload I guess.