1

I am writing a Bash script that requires the internal/private IP address. On a Linux system I normally use the hostname -I command. However, this does not work on some other Unix-like systems, most notably MacOS. Is there any command that does return the private IP address, that is present on most (if not all) Unix-like systems?

Lukas
  • 57

0 Answers0