Difference between revisions of "Ipconfig getifaddr"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
[[macOS]]
 
[[macOS]]
  ipconfig getifaddr en0
+
  ipconfig getifaddr [[en0]]
 
  192.168.0.13
 
  192.168.0.13
  

Revision as of 10:19, 20 September 2023

macOS

ipconfig getifaddr en0
192.168.0.13
for DEVICE in $(networksetup -listallhardwareports | grep Device | cut -d" " -f2); do echo $DEVICE; ipconfig getifaddr $DEVICE; done


ipconfig getifaddr
usage: ipconfig getifaddr <interface name>

See also

Advertising: