Ubuntu – How to setup an Access Point mode Wi-Fi Hotspot


How to setup an Access Point mode Wi-Fi Hotspot?

Point to be noted: Wireless hotspots aren't the same as ad hoc networks. There is significant difference between the two. In short, ad hoc networks aren't supported on newer devices and most Android, Windows Phone and Blackberry devices (and maybe iOS devices too) whereas AP mode Wi-Fi hotspots are. To get an idea about AP mode hotspots, ad hoc networks and their difference, refer to this Wikipedia page and this article on Connectify website.

Best Answer

  • Ubuntu 18.04 LTS

    With GNOME 3.28 desktop on Ubuntu 18.04 LTS, WiFi tethering has become easier than ever!😃 Just open the Wi-Fi Settings from system menu.

    GNOME system status menu

    And then from the hamburger menu on Wi-Fi Settings, select Turn On Wi-Fi Hotspot. That's it, your WiFi access point is now up and running!

    WiFi Settings

    Advanced Stuff

    If you wanna change the name (SSID) and password of your access point, open Network Connections editor tool by entering the following in either Terminal or Alt+F2:


    Network Connections

    Double click on Hotspot and the editor window'll appear. You may change SSID and password from the Wi-Fi and Wi-Fi Security tabs.

    Edit SSID Edit password

    Ubuntu 16.04 LTS & 14.04 LTS

    Step 1: Test whether your WiFi card supports AP mode

    Follow the Access Point mode check in the answer provided by Web-E

    Step 2: Start the built-in Hotspot

    Network comes with a built-in option to start an Ad-Hoc hotspot. So, let's use this first, so that it could be configured and converted to an Access Point mode hotspot in the next step.

    Search Network in Dash and open it.


    Press the "Use as Hotspot" button and Network Manager will start an AdHoc hotspot.


    But that's not what we want, is it? 😉 Stop the hotspot.

    Step 3: Configure Hotspot

    Open Network Connections from Dash or 'Edit Connections' from Network Indicator menu.

    Edit Connections

    In the Network Connections window that appears, there'll be a connection named Hotspot listed under the WiFi section. Select it and click the 'Edit' button.

    Network Connections

    In the window that appears, you may edit the broadcast name (SSID) of your hotspot. Now comes the most important part of this configuration: change mode to 'Hotspot', which'll finally convert the hotspot to Access Point mode. Users of Ubuntu 14.04 LTS'll notice that this mode isn't available to choose from the drop-down. Don't get disappointed, as you can still do it via an extra Step 3.1.

    Edit Hotspot Name and Password

    Save and open the same Editing Hotspot window again. This time go to the WiFi Security tab for selecting password type. If you don't want to set a password, you can set security to none and thus create an open hotspot. If you're setting a password, it's recommended to change the security key from WEP to WPA2. Once the configurations are done, don't forget to save it so that the changes could apply.

    In the General tab, make sure that “Automatically connect to this network when it is available” is turned off (unless you only ever use your wifi as a hotspot). Otherwise, since the hotspot is always available, you won't see the menu entries to connect to other wifi networks in the network manager applet.

    Step 3.1: Only for Ubuntu 14.04 LTS

    Since Ubuntu 14.04 LTS's Networks (network-manager v9.8.8) doesn't offer a graphical setting to select AP mode, we'll manually edit it's config file to force the conversion. Copy the following command, then press Alt+F2 or open Terminal and paste it there:

    pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit /etc/NetworkManager/system-connections/Hotspot

    Type your password in the authorization dialog that appears and the configuration file will be opened in text editor. Find a line beginning with mode=, change it to mode=ap and save the file.

    Step 4: Start Hotspot

    Now that the configuration part is over, we'll start the hotspot. Click on 'Create New Wi-Fi Network' from Network Indicator menu.

    Create New WiFi Connection

    In the window that appears, click on the connection drop-down button and change "New..." to "Hotspot". Press the "Create" button and your hotspot will start running. From now on, whenever you need a hotspot, you just need to do this step i.e Step 4 only.

    Start Hotspot

    K.. That's all folks! Have fun with your new Access Point 😊