How to get your Mac's local IP?

How to get your Mac's local IP?

1
ipconfig getifaddr en0