Difference between revisions of "Ipconfig getifaddr"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  192.168.0.13
 
  192.168.0.13
  
  [[ipconfig getifaddr]] $([[networksetup -listallhardwareports]] | awk '/Hardware Port: Wi-Fi/{getline; print $2}')
+
  [[ipconfig getifaddr]] $(networksetup -listallhardwareports | grep Device | cut -d" " -f2)
 +
 
  
  

Revision as of 08:36, 21 September 2022

macOS

ipconfig getifaddr en0
192.168.0.13
ipconfig getifaddr $(networksetup -listallhardwareports | grep Device | cut -d" " -f2)


ipconfig getifaddr
usage: ipconfig getifaddr <interface name>

See also

Advertising: