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