Difference between revisions of "Ipconfig getifaddr"
Jump to navigation
Jump to search
(13 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[macOS]] | [[macOS]] | ||
− | ipconfig getifaddr en0 | + | [[ipconfig]] getifaddr [[en0]] |
192.168.0.13 | 192.168.0.13 | ||
− | [[ipconfig | + | [[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 == | ||
ipconfig getifaddr | ipconfig getifaddr | ||
usage: ipconfig getifaddr <interface name> | usage: ipconfig getifaddr <interface name> | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[ip address show]]</code> or <code>[[ip a s]]</code> | ||
+ | * <code>[[networksetup -listnetworkserviceorder]]</code> | ||
+ | * <code>[[myip]]</code> [[alias]] | ||
== See also == | == See also == | ||
* {{networksetup}} | * {{networksetup}} | ||
− | * {{ipconfig}} | + | * {{ipconfig (macOS)}} |
+ | * {{macOS networking}} | ||
[[Category:macOS]] | [[Category:macOS]] |
Latest revision as of 10:08, 13 December 2023
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: