raspberry pi find local ip address code example Example 1: get ip of raspberry pi hostname -I Example 2: find raspberry pi ip on local network ping raspberrypi.local