Thursday, 17 August 2017

Create a Wi-Fi hotspot in less than 10 minutes with the Raspberry Pi!

Have you ever needed to create a second Wi-Fi network in addition to your primary network? If you (or someone close to you) have a business (coffee shop, restaurant, hairdresser or doctor, in short, a place where people are likely to wait), it is likely that you have already Your customers, without wanting to give the password of your box. In the same way, you may have already wanted to create an internal network that is cut off from the Internet, for example to exchange files within a small company, and so on.

For all these situations, the simplest solution is to create what is called a hotspot, that is to say a kind of box that you can control and to which your users can connect to access the internet. In this tutorial, let's see how we can use a pi raspberry to create our own homemade hotspot, in less than 10 minutes!

The hardware needed to create your hotspot

In order to create our own hotspot, we will need a little bit of hardware, but nothing complicated or too expensive, you will be able to get around for about 50 $ to 60 $, and you can use all the equipment for Other uses in parallel.

To achieve our hotspot, we will need the following:

A raspberry pi 3 (chosen because it has an ethernet port and a built-in Wi-Fi connection)
A diet for your Raspberry Pi
A MicroSD card of at least 8GB
An Ethernet cable
As you can see, all these components are just the ones needed to run a raspberry pi, and you will be able to use the raspberry pi in question for other things in parallel to its role as hotspot.

Moreover, by tweaking a bit in the configurations, and if you add a second Wi-Fi interface on your raspberry pi, you can also transform your hotspot into a Wi-Fi repeater, in order to increase the range of your box!

Install hostapd and its interface to turn your raspberry pi into a Wi-Fi hotspot

Now that we have all the hardware we need, we will be able to switch to installing the various software needed to transform our raspberry pi to Wi-Fi.

The first step will be to install Raspbian (the lite version, preferably) on your raspberry pi. To do this, we will let you consult our tutorial explaining how to install Raspbian on raspberry pi from Windows , or from Linux.

Once you have installed Raspbian, the first thing to do is to plug your raspberry pi to your internet box using the Ethernet cable and then take control of your raspberry, either directly with a keyboard / screen, or by SSH , As explained in this tutorial .

Once done, we will ensure that the Wi-Fi connection of the raspberry remains available for the creation of the hotspot. For this purpose, we will simply create a copy of the configuration file allowing connection to a box, to keep it aside, and empty the main file.
To do this, go to the terminal of the raspberry pi and issue the following commands:

Sudo cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.sav

sudo cp / dev / null /etc/wpa_supplicant/wpa_supplicant.conf

Now that we are sure that the Wi-Fi interface is available, all we have to do now is install the various software to make the raspberry pi an access point.

In this tutorial, we will use the hostapd software, which makes it possible to manufacture an access point with raspberry pi. And to facilitate the installation and administration of this access point, we will also install a web interface that will allow us to control our hotspot.

Screenshot of the RaspAP interface

With RaspAP, you can manage your Wi-Fi hotspot with a web interface.

And the good news is that to do all this we will need to launch only one command:

Wget -q -O / tmp / raspap && bash / tmp / raspap

Once the command is launched, you only have to answer the few questions that will be asked, and the installation of all the components will be done by itself.

Connect to your Wi-Fi hotspot

When the installation is complete, raspberry pi restarts, and you should see a "raspi-webgui" network in the list of accessible networks.

If, however, the network does not appear, find the IP of the raspberry pi, and connect to it via your web browser. You should arrive on the hotspot administration interface, the default password is shown on the github page of the software . Once connected, go to the "Configure Hotspot" section, and change the "Wireless Mode" field, this should solve the problem.

Once the network is visible, all you have to do is log in, the default password is ChangeMe.
You can change this password, network name, and many other things by connecting to the admin interface of your raspberry hotspot via your web browser, by default the address should be

All you have to do is configure your hotspot to suit your needs!


  1. This comment has been removed by the author.

  2. There are three devices for worldwide coverage. The Mifi 2200 covers the United States.visit this site