not able to create hotspot in ubuntu 16.04

21,314

Solution 1

I have tried this tutorial and for me it works great. Also I can connect to Ubuntu from Android and any device.

  1. Disable WIFI and plug in an internet cable to your laptop so that your Ubuntu is connect to a wired internet and wireless is disabled.

  2. Go to Network Icon on top panel -> Edit Connections …, then click the Add button in the pop-up window.

  3. Choose Wi-Fi from the drop-down menu when you’re asked to choose a connection type:

  4. In next window, do: Type in a connection name. The name will be used later. Type in a SSID, Select mode: Infrastructure , Device MAC address: select your wireless card from drop-down menu.

  5. Go to Wi-Fi Security tab, select security type WPA & WPA2 Personal and set a password.

  6. Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.

    When done, click the save button.

After above steps, a configuration file created under /etc/NetworkManager/system-connections directory. File name is same to the connection name you typed in step 4.

Now press CtrlAltT on keyboard to open terminal. When it opens, paste the commands below and hit enter to edit the configuration file:

gksu gedit /etc/NetworkManager/system-connections/wifi-hotspot

Replace wifi-hotspt with the connection name you typed in step 4.

When the file opens, find out the line mode=infrastructure and change it to mode=ap. Finally save the file.

When everything’s done, enable WIFI from Network Manager icon on the panel. It should automatically connect to the hotspot you created. If not, select “Connect to Hidden Wi-Fi Network …” and select it from the drop-down box.

Done.

Solution 2

I had to install dnsmasq and restart NetworkManager service to get hot spot working:

sudo apt install dnsmasq
sudo systemctl restart NetworkManager

And, network management in gnome control center didn't allow me to create custom wifi profile. So, I used nmtui.

Solution 3

System Settings --> Network --> Wired :- Make it on --> Wireless --> Use as Hotspot --> Create Hotspot --> Options --> Wireless --> Give name --> Wireless Security --> Give password --> IP4v4 Settings --> Method --> Shared with other computers --> Save

See:

http://www.howtogeek.com/116409/how-to-turn-your-ubuntu-laptop-into-a-wireless-access-point/

NOTE: You cannot simultaneously connect to a wifi network as well as create a hotspot

Share:
21,314

Related videos on Youtube

user2328556
Author by

user2328556

Updated on September 18, 2022

Comments

  • user2328556
    user2328556 3 months

    I am tried using following method , but phone is not detecting this hotspot https://help.ubuntu.com/16.04/ubuntu-help/net-wireless-adhoc.html

    can anybody help me?

  • Rainmaker
    Rainmaker about 5 years
    It was dnsmasq.
  • ksclarke
    ksclarke about 5 years
    For me as well, turning on "Use as Hotspot" was crashing for me until I installed dnsmasq. After that, all was fine.
  • HD189733b
    HD189733b about 5 years
    Thank you! This method works for me. In my edit connections window, I can directly choose hotspot from the mode. Then I don't need to edit the mode in the configuration file in the last step.
  • HD189733b
    HD189733b about 5 years
    Unfortunately, this method doesn't work on my Ubuntu 16.04. In addition, after installing dnsmasq, network manager somehow use 100% cpu when I turn on my wifi.
  • loxaxs
    loxaxs over 4 years
    (2018) Step 4 - chose hotspot, instructions after step 6 wasn't needed.
  • lewis4u
    lewis4u over 3 years
    Where are the logs for networking saved?
  • Puspam
    Puspam almost 2 years
    Thanks! This technique works but WITHOUT INTERNET CONNECTION. Every time I turn on the hotspot, Ubuntu cannot connect to the wired internet connection.