Difference between revisions of "Ipconfig getifaddr"

From wikieduonline
Jump to navigation Jump to search
 
Line 15: Line 15:
  
 
== Related ==
 
== Related ==
* <code>[[ip a s]]</code>
+
* <code>[[ip address show]]</code> or <code>[[ip a s]]</code>
 
* <code>[[networksetup -listnetworkserviceorder]]</code>
 
* <code>[[networksetup -listnetworkserviceorder]]</code>
 
* <code>[[myip]]</code> [[alias]]
 
* <code>[[myip]]</code> [[alias]]

Latest revision as of 10:08, 13 December 2023

macOS

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

Errors[edit]

ipconfig getifaddr
usage: ipconfig getifaddr <interface name>

Related[edit]

See also[edit]

Advertising: