Show local IP addresses

Read-only
What do risk levels mean?
Read-only
Inspects state without changing anything.
Low risk
Reversible with a routine follow-up command.
Medium risk
Changes state; undo path documented.
Destructive
Deletes or overwrites; confirmation required.

Lists the IP addresses assigned to this machine's network interfaces, useful for reaching the machine from another device on the same network.

networkipinterfacelan

Commands

Show the IPv4 address assigned to each active interface

ifconfig | grep "inet "

Verification

ifconfig | grep "inet "

At least one non-loopback address (for example 192.168.x.x or 10.x.x.x) is listed on an active interface.

Undo

Not undoable

This recipe only reads interface configuration and changes nothing.

Pitfalls

  • 127.0.0.1 is the loopback address and is not reachable from other machines; look for the address on your Wi-Fi or Ethernet interface.
  • A 169.254.x.x address means DHCP failed and the interface self-assigned; renewing the DHCP lease usually fixes it.
  • The verification command uses macOS syntax; on Linux without net-tools use "ip -brief addr", and on Windows use "ipconfig".

Related