Use ipconfig command to show a specific interface:
For Wi-Fi connection
ipconfig getifaddr en0For Wired connection
ipconfig getifaddr en1Use scutil command to show active interfaces and their IPv4/6 addresses (it does not show AWDL interfaces):
scutil --nwiUse ifconfig command to show a specific interface:
For Wi-Fi connection
ifconfig wlan0For Wired connection
ifconfig eth0Use ifconfig command to display all the network interfaces that are currently up, including the loopback interface:
ifconfigUse ipconfig command to display a specific TCP/IP interface:
For a Wi-Fi connection
ipconfig /renew Wireless*For a Wired connection
ipconfig /renew Ethernet*Use ipconfig command to display the full TCP/IP configuration for all adapters
ipconfig /all