Hello there, this is TakshakSH and you are reading a LinuxH2O article. In this quick and easy guide, you will learn how to set up your Linux distribution so that you can use the wifi & enable hotspot both at the same time.

For this guide, I will be using the latest Linux Mint 20 Ulyana but you are free to use whatever Linux distribution you like. This guide will work on all of them. We will also use some utilities like “create_apand hostapd to enable the hotspot functionality. So let’s get started now, shall we!

Also check out: How to enable snap support in Linux Mint 20

Setup for use wifi & hotspot at same time

First of all, we have to install the hostapd utility in the system. You can use the installation command for that as it is already available in the official repositories.

For Ubuntu, Debian and derivatives

sudo apt install hostapd

For Fedora, RedHat or CentOS

sudo dnf install hostapd

In case you are not able to install the hostapd package with the above commands then you can download the package file for your distribution from the pkgs.org.

Download hostapd

Need help on how to install packages : Installing applications in Linux | Complete guide

After installing the hostapd, you need to get the create_ap from the link below. Simply download the zip file extract.

Get create_ap • Github

Now we have to install create_ap in the system, for this navigate to the extracted folder and run the below command.

sudo make install
Installing create_ap in the system

The setup is complete, let’s start the hotspot/tethering now.

Enabling hotspot/tethering on Linux

To enable hotspot, simply check your wifi interface name and create an access point with create_ap utility.

To check the name of the wifi interface, execute the below command.


Result for the ifconfig commnad.

Getting wifi interface name

“wlp1s0” – This is starting with character “w” so this is the wifi interface name and the one starting with “e” is for Ethernet. It varies hardware to hardware.

Simply copy the name and execute the create_ap command to enable hotspot.

sudo create_ap interface interface SSID password 

So in our case the interface name for the internet source and hotspot is “wlp1s0” and wifi name is “LinuxH2O” and the password is “linux123”.

sudo create_ap wlp1s0 wlp1s0 LinuxH2O linux123

Result of the above command.

Enabling wifi hotspot with create_ap

Now you can turn on wifi in your smartphone or any wifi enabled device, you will see a network by the name “LinuxH2O” select it and type the password to connect. You will be able to access the internet and the network.

Wifi connected in smartphone

Watch Video guide on YouTube

Additionally, You can also watch a step-by-step video guide on YouTube to get a better understanding of it.


So that was the guide on how to use wifi and enable hotspot/tethering at the same time in Linux. Let me know what you think about it in the comment section below and don’t forget to subscribe to the LinuxH2O Youtube channel. Till then, keep enjoying Linux.