How to setup static ip to raspberry pi.

Its easy if your raspberry pi has a static ip when you want to ssh into it, instead of it getting a dynamic one each time it boots up and joins your wifi network.

Edit /etc/dhcpcd.conf

Add following (if is the router address & is static ip you want to assign to raspi)-

interface wlan0

static ip_address=

static router=

static domain_name_server=