How to Configure WiFi on Raspberry Pi 4

Let’s learn how to configure WiFi on Raspberry Pi 4 Model-B. We can either use the command prompt (terminal) or graphical user interface to setup wireless network. In this post, we will use a command prompt to setup our network credential onto Raspberry Pi 4. This will enable Raspberry Pi to access the internet from home router. We will complete setup of a wireless network by running just a few commands.

The first step is to login Raspberry Pi 4. Then open Terminal –> Type sudo iwlist wlan0 scan –> Hit Enter. This command will scan and list all the available WiFi networks with all necessary information. We will get our home network details into this list (say for example SSID which is a name of wifi network). This will help us to make sure network (that we want to connect) is available or not for Raspberry Pi.

Free Course Signup

The next step is to add network details on Raspberry Pi 4. Run this command sudo nano /etc/wpa_supplicant/wpa_supplicant.conf This will open up wpa_supplicant.conf file. Add these few lines of code and replace your network information.

    ssid="You SSID Name"
    psk="Your WiFI Password"

Our file will look something similar as shown in the picture below:

How Setup WiFi on Raspberry Pi 4
How Setup WiFi on Raspberry Pi 4

Once we have added WiFi network details. We will have to save this file by pressing CTRL+O and then CTRL+X. And then simply run sudo reboot command which will reboot the Pi. When Raspberry Pi restarts, we will connect to the internet without using any Ethernet cable.

Live Demo: How to Configure WiFi on Raspberry Pi 4

Now we know How to configure WiFi on Raspberry Pi 4. In next tutorial, we will learn about GPIO Pins on Raspberry Pi 3. GPIO Pins are Digital Input Output Pins to control external devices using Raspberry Pi 4. I hope you will find this tutorial educational and entertaining. Thanks for reading and see you in next tutorial.

Get Free Courses & Webinars
You'll receive only high quality learning material, tips & tricks
I agree to have my personal information transfered to MailChimp ( more information )
We respect your privacy

About Umesh Lokhande

Umesh Lokhande holds a Master degree in Scientific Instrumentation from University of Applied Sciences Jena, Germany. and has previously worked at Orbotech, Alere Technologies etc. Umesh is also a founder and first author of BINARYUPDATES.COM


Register | Lost your password?