The problem here is that general Linux and unix-based systems supports quite well to work with multiple network interfaces at once. There's no "local IP" as every IP can be a local one and the computer have pretty much no way to know.
As an example, when working on my laptop, I'm usually plugged on Ethernet and Wi-fi, which means that I have two local IPs; one for the wlp2s0 (Wi-fi) interface, one for the enp1s0 (ethernet) interface.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.