On Ubuntu 14.04, can an adapter have both a hotspot and be connected to a WiFi network at the same time?
If so, how do I share the Internet of the currently connected network over a hotspot in Linux?
If not, why?
can an adapter have both a hotspot and be connected to a WiFi network at the same time?
Yes , it's possible to create a hotspot wifi from the same wifi connection
How do I share the Internet of the currently connected network over a hotspot in Linux?
You should use
Install the dependencies :
sudo apt-get install dnsmasq haveged hostapd build-essential
git clone https://github.com/oblique/create_ap cd create_ap sudo make install
enable/start the service:
service create_ap start
To check the status run:
service create_ap status
systemd features (it is not available on Ubuntu 14.04):
sudo systemctl start create_ap.service sudo systemctl enable create_ap.service
Create the AP
To create your access point run:
sudo create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase
hostapdversion in Ubuntu 14.04 is buggy and doesn't work properly. To get AP-Hotspot to work with
hostapdin Ubuntu 14.04, you need to downgrade
aptto hold the package so it's not upgraded.
Remove the current version of
sudo apt-get remove hostapd
cd /tmp wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb sudo dpkg -i hostapd*.deb sudo apt-mark hold hostapd
cd /tmp wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb sudo dpkg -i hostapd*.deb sudo apt-mark hold hostapd
See this question.
Basically, find your wifi interface, then
sudo iw dev wlp8s0 interface add wlp8s1 type station to create the new interface.
You can use this method to create a virtual interface, use one interface to connect to a network and use another one to create an ad-hoc network for hotspot. This should be pretty straight-forward (googling, of course), since NetworkManager has (a nice) UI. For example, this should do it.
Just try this one, I found this working in my
Windows 10 PC while my PC is connected to my internet, it also serves as a server (host) during my
WINE (Ubuntu Store) in your
Ubuntu 14.04 it makes
.exe runs on
And Run this one
WLAN Launcher which will make your PC - turn to Hotspot mode (host).
Provide a password you like and network name. Then