How to get the primary IP address of the local machine on Linux and OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 3 years ago. Improve this question I am looking for a command line solution that would return me the primary (first) IP address of the … Read more