Raspberry Pi WiFi
Looking to learn how to setup the Raspberry Pi WiFi then this is the guide to check out. In this guide we will show everything you need to know to get that network up and running in no time.

In this guide I will show you how to setup both the Raspberry Pi WiFi via command line and also how to do it via the GUI within Raspbian. It’s pretty straight forward but for anyone who is completely new to the Pi these are vital steps that you will need to undertake to be able to setup your Raspberry Pi correctly.

Pi Book Small Pi Book Large

If you want to see how this is done visually then check out the video I have prepared below. As always if you like what you see then please subscribe so you can stay up to date with all the latest and greatest Raspberry Pi projects, guides and much more.


I used the following equipment for this guide on the Raspberry Pi setup Wifi.


Raspberry Pi

4 GB SD Card (8 GB+ Recommended) or Micro SD Card if you’re using a Raspberry Pi 2, 3 or B+

Wifi dongle


USB Keyboard

USB Mouse

Raspberry Pi Case

In this guide I use the default operating system for the Pi. This OS is known as Raspbian, if you haven’t got it installed then you can follow my guide on how to install Raspberry Pi NOOBS (Raspbian).

Setting up Raspberry Pi WiFi Command Line

If you don’t have the option of setting up the WiFi connection up through the GUI then this is the next best thing. It’s a little harder but still relatively easy to setup.

1. Whilst within the terminal on the Raspberry Pi enter the following command.

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

2. At the bottom of this file add the following lines

ssid="The SSID of your network (eg. Network name)"
psk="Your Wifi Password"

3. Exit nano by typing ctrl+x and then y to save.

4. The Raspberry Pi should now notice the change in the wpa_supplicant file and attempt to connect to the network. You can force the Pi to check for changes by using either sudo ifdown wlan0 and then sudo ifup wlan0

On Raspbian stretch wlan0 may no longer be correct, use ifconfig to see the new name.
5. You can check if it has successfully connected by using ifconfig wlan0. The inet addr field should have an IP address in it.

If you’re having trouble connecting be sure to make sure that the WiFi dongle is supported by the Pi. It is also possible you have the SSID wrong, to scan and check use sudo iwlist wlan0 scan and check the essid field. This field should be the same as what you entered in the ssid field.

Setting up Raspberry Pi WiFi Via GUI

This is the easiest way to setting up WiFi for the Raspberry Pi as everything can be done easily within the GUI (Graphical User Interface).

1. You will need to have your Raspberry Pi connected to a monitor with a mouse and keyboard.

2. On the Raspbian desktop locate the icon/application called WiFi config and double click on it.

3. In this program click on the scan button.

4. A new window should pop open and your network should be visible. If it is simply double click on it otherwise press scan again and wait a few seconds.

5. You can now enter the WiFi password in the PSK field and simply click add.

6. The Pi should now connect to the WiFi network and the details should be filled out in the wpa_gui window.

Now that you have your WiFi setup you might be interested in doing a bit more with it. For example, setting up a Raspberry Pi WiFi access point is a great way to help extend WiFi coverage throughout your house. You will need to have ethernet connected to the Pi as a WiFi to WiFi setup isn’t great for speed.

If you’re having trouble getting it to connect be sure to check that the dongle is supported by the Pi. This is one of  the most common issues when setting up the Raspberry Pi WiFi.

Ultimate Book of Pi SmallUltimate Book of Pi Large
The Raspberry Pi Crash Course

The Raspberry Pi Crash Course

Enter your email address below to get the

Raspberry Pi crash course delivered straight to your inbox

Please check your inbox for a confirmation email!