To use a static IP address, go to Apple logo → System Settings → Network → Wi-Fi → Details beside Wi-Fi name. Select TCP/IP → dropdown arrow next to Configure IPv4. Choose Using DHCP with Manual Address and enter the static IP address. Click on OK to save.