How To Make Raspberry-pi ip-Address Static and show an virtual window of raspberry-pi on Windows desktop through VNC-Viewer
STEP 1: Disconnect your Desktop from Windows operating system.
STEP 2: Connect your Raspberry-pi to your pc install the Raspbian from the below link
STEP 3: Download BalenaEtcher which is basically an image flasher which is going to flash the image of the OS that is Raspbian on the SD card on any USB for further details go to the link below and download it.
Also you can download Win32diskmanger to flash the OS
STEP 4: Now as we download the Raspbian and also we flash it now Download the VNC viewer through the below link
STEP 5: Now open the Terminal on Rasberry-pi and write the following commands
1. ifconfig : Check out the ip-address , sub-net mask
2. netstat -nr : This command will tell you about the gateway address
3. sudo nano /etc/network/interfaces : This command will give the network file name
4. ctrl-x : To close the file use control-X command.
6. sudo nano /etc/dhcpcd.conf : This is that file which is your network file
Write the following commands in your file and make the raspberry-pi ip static
- interfaces eth0
- static ip_address=your ip address
- static routers=gateway ip_address
- static domain_name_servers=8.8.8.8 8.8.4.4
7. ctrl-X and Y: This will exit and save the file in the raspbian
8. sudo reboot
USERNAME :Which is default that is pi
PASSWORD :The default password is raspberry
And after clicking the OK button the Virtual screen of the Raspberry-pi comes to your laptop or desktop
Comments