I'm working on a solution in NodeRED where a Pi will be using Wifi for the internet and its ethernet port for a closed LAN. I'd like to be able to retrieve the current machine's IP address for both NICs in NodeRED.
I came across https://flows.nodered.org/node/node-red-contrib-ip, but upon more reading and testing, it only returns the Local IP of the NIC that is internet-facing.
I also came across this https://flows.nodered.org/flow/09e0f1a6b4446c214b1cb5c22f7c8d08, but my issue with that is that you have to already know the IP of a host on your LAN in order for the function to work properly. In my situation, I won't even always know if I'm in a 192, 10, or 17 IP range, let alone know the IP of a host to connect to.
Furthermore, I'm hoping to make a solution that requires no real input from the user. Just plug in and go.
Assume for this that there will always be a DHCP server handing out addresses on both networks.