Ubuntu – How to create a WiFi hotspot sharing wireless internet connection (single adapter)

hot-spotwirelesswireless-access-point

I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.

In Windows I can use Connectify Hotspot, which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the technology overview page:

Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.

How do I do this on Ubuntu?

Best Answer

  • Simple steps: Create wifi hotspot in ubuntu

    1. Disable Wifi (Uncheck Enable Wi-Fi)
    2. Go to network connection (Edit Connections...)
    3. Click "Add"
    4. Choose "Wi-Fi" and click "Create"
    5. Type in Connection name like "wifi-hotspot"
    6. Type in SSID as you wish
    7. Choose Device MAC Address from the dropdown (wlan0)
    8. Wifi Security select "WPA & WPA2 Personal" and set a password.
    9. Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.
    10. Then save and close.
    11. Open Terminal (Ctrl+Alt+T) and type in the following command with your connection name used in step 5.

      sudo gedit /etc/NetworkManager/system-connections/wifi-hotspot
      
    12. Find mode=infrastructure and change it to mode=ap

    13. Now check the network section where wi-fi will be connected to the created hotspot automatically. If you can not find it, go to Connect to Hidden Network... Find the connection and connect to it.

    Source: http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/