How to setup raspberry pi without monitor? How do you know the raspberry pi IP? Relax, let me share with you how to do it.
When we setup a Raspberry Pi for the first time. We need to enable some option inside the Raspberry Pi, like SSH, Static IP and etc. Logically you need a monitor to see all off the thing. But, it just only one time use. After you finish setting the Raspberry Pi, you don’t need it any more.
After you finish install OS on Raspberry Pi SD-Card. First you need to enable SSH. Inside the boot partition, type this command.
sudo touch SSH
Then you need to know what is your IP range. Normally we use 192.168.x.x. Please pick any free IP. After you confirm the IP is free. Type this command.
sudo cp cmdline.txt cmdline.txt.backup sudo nano cmdline.txt
Inside “cmdline.txt” put your IP
console=serial0,115200 console=tty1 root=PARTUUID=384ee4b1-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles ip=192.168.0.15
You can now reboot the Raspberry Pi (sudo reboot), and next time the IP address will be automatically set. To change between configurations, simply use the following commands (just remember to edit /boot/cmdline.txt.backup if you need to change the IP address in future).
reference : here