How do I find out (command line or python) if an IP address is from the local host?
I've had to figure this out for some customers in the past. Easiest and most reliable method across OS versions I've found is string matching inet lines in ifconfig results.