Use raspberry pi imager to load operating system on SD card
make a blank text file in SD card and name it as ssh, Then insert SD card into pi and boot for first time.
Find out IP address of pi using Advance IP scanner
Advanced_IP_Scanner_2.5.3850.zip
Create a blank file name wpa_supplicant.conf
country=CA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SweetHome"
psk="Rupali#80"
}
That its, your pi will now connect to wifi once it boot up successfully.
below is the command which can be use to figure out ip address of all device connected on your network.
sudo arp-scan --interface=en0 --localnet