6
I am using Ubuntu 22.04.1 LTS desktop. I want to share the ethernet connection via wifi hotspot on my laptop. After turning on the hotspot, I am not able to connect any device from the hotspot, it shows that the network is saved.
I tried setting the security of the hotspot to none using nm-connection-editor, but it hasn't worked. I changed the password using network manager but still when I turn on the hotspot, it asks to enter the password, or else it generates the password on its own (It automatically changes the setting in the network manager when I turn on the hotspot i.e. it automatically resets the setting in network manager). In the mobile it shows a plus sign over the lock in wifi (a have attached the screenshot of it). Please give me a solution.
I am attaching the screenshot of hotspot in my laptop and from mobile.
- networking
- network-manager
- ethernet
- hot-spot
Improve this question
edited Aug 26, 2022 at 7:48
smallest quanta
asked Aug 20, 2022 at 8:42
smallest quantasmallest quanta
12311 gold badge22 silver badges88 bronze badges
5
-
Does the hotspot show up on devices you are trying to connect or not at all? Please expand your question to explain exactly where things go wrong.
–zwets
Commented Aug 20, 2022 at 19:57
-
I have expanded my question @zwets
–smallest quanta
Commented Aug 22, 2022 at 3:38
-
Since there is no question mark in your question, I just want to make the question absolutely clear: You are only asking how to make a hotspot without a password. Hotspots with passwords already work for you, right?
–Natan
Commented Aug 27, 2022 at 8:59
-
1
no, I am not able to connect via hotspot with WPA and WPA2 personal security. the device won't connect even if I give the correct password or scan the QR code. when I turn the security to none and then turn on hotspot, then still the settings in network manager are automatically changed to WPA and WPA2 personal security. @Natan
–smallest quanta
Commented Aug 27, 2022 at 13:19
-
1
You could try to follow: anooppoommen.medium.com/… to see what step fails. It also explains how you can check whether your wireless card supports being an AP. But I think os would notice that on its own.
–Natan
Commented Aug 27, 2022 at 13:27
Add a comment |
11 Answers
Reset to default
12
What got things working for me was the disablement of Protected Management Frames
nmcli c modify Hotspot 802-11-wireless-security.pmf 1
Improve this answer
answered Mar 19, 2023 at 10:29
Dzamo NortonDzamo Norton
53355 silver badges77 bronze badges
2
-
1
Thanks, it worked for me too.
–smallest quanta
Commented Mar 23, 2023 at 5:46
-
1
Thank you. worked! clarification # nmcli c modify <Your_Hotspot_Name> 802-11-wireless-security.pmf disable
–rajesh
Commented May 31, 2024 at 8:29
Add a comment |
8
This seems to be an issue with wpa_supplicant
version 2.10+ ([1], [2]). You can either use hostapd
to create a software AP manually by first masking NetworkManager for the Wifi device [3] and then following the instructions linked in the same article---or try using a different security protocol such as WPA3/SAE. The latter can be achieved using:
nmcli connection down Hotspotnmcli connection modify Hotspot 802-11-wireless-security.key-mgmt saenmcli connection up Hotspot
Take care not to use the GUI to activate the hotspot as this will reset the settings.
Switching to WPA3 solved the problem in my case and works as long as your client devices support this protocol.
Improve this answer
edited Dec 7, 2022 at 10:50
answered Dec 6, 2022 at 15:35
ljrkljrk
84577 silver badges1414 bronze badges
1
-
This worked for me, after the Linux mint 21 version update hotspot with the password suddenly stopped working. Thank you!!!
–Anuj Shrestha
Commented Mar 27, 2023 at 4:16
Add a comment |
3
This looks like the bug raised for Ubuntu 20.04 - Can't connect to hotspot created on ubuntu
Posting this as an answer as I don't have enough reputation for comment.
Improve this answer
answered Aug 28, 2022 at 17:22
Alen MathewAlen Mathew
8133 bronze badges
Add a comment |
1
Do this using the network-manager
Install it first if you don't have it :
sudo apt-get install network-manager
Then
- Search for network manager in your Desktop environment,
- Create a new connection, select wifi.
- In the WIFI tab go to Mode and change it to Hotspot.
- Choose your network interface e.g wlo1 in the device option,
- Then go to IPv4 choose Shared to other.. in the Method option,
- Add normal security WPA/WPA2 Personal with simple password
Improve this answer
edited Aug 21, 2022 at 15:00
answered Aug 20, 2022 at 23:04
user1619729user1619729
3
-
This didn't worked.
–smallest quanta
Commented Aug 21, 2022 at 4:06
-
@sawankt The plus sign on your wifi SSID is for an android feature called Wifi calling You can disable that from the settings, depending on your android version,try to disable that feature, delete the network profile in your phone and reconnect to Ubuntu. Wifi calling is way to make calls using WAN using the internet communication and not normal antennas.
–user1619729
Commented Aug 21, 2022 at 15:03
-
I have disabled the wifi calling, but still it dosen't work.
–smallest quanta
Commented Aug 22, 2022 at 3:41
Add a comment |
1
You can try using different Wi-Fi security protocols to see if any of them work. Also check if you can connect your Ubuntu box to a mobile hotspot via Wi-Fi, if not, try via USB cable. Chances are it's a broader Linux issue. Linux often has problems with proprietary drivers as a result of the proprietary business practices of the industry. My box, nor laptop, running the same version of up-to-date Ubuntu cannot connect to mobile hotspot nor WPA & WPA2 Enterprise networks. It can only connect to the mobile hotspot when using a USB cable. It can see the wifi network just fine but when trying to connect, it starts looping the password prompt window. It's an indication that Linux is unable to get the correct settings from the router. I have none of these issues on Windows side. You should really ask this question at the Linux kernel dev forums. Ubuntu is a reliable distro using standard kernel drivers and network tools so I doubt this is a Ubuntu-only issue.
Improve this answer
answered Aug 29, 2022 at 12:19
AnonymousAnonymous
1111 bronze badge
Add a comment |
1
I have the same issue on Ubuntu 23.10 with KDE. The hotspot works well if I set no password and I could not connect as long as I set any password.
I see the solution in a good reference https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/104
So, basically what you need to do is to create a hotspot connection first, and name it, for example, ad myhotspot
and set the password in the GUI. Then you can turn it off by
nmcli connection down myhotspot
and then config it by
nmcli connection modify myhotspot wifi-sec.pmf disable
and then turn it on again
nmcli connection up myhotspot
Hope this helps.
Improve this answer
answered Jan 16, 2024 at 16:24
YangPhyYangPhy
1111 bronze badge
Add a comment |
1
This is the most accurate code that can solve your problem
`
- nmcli connection down Hotspot
- nmcli connection modify Hotspot wifi-sec.pmf disable
- nmcli connection up Hotspot
`
Improve this answer
edited Mar 22, 2024 at 7:08
answered Mar 22, 2024 at 7:07
Thành PhạmThành Phạm
1122 bronze badges
1
-
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
–CommunityBot
Commented Mar 22, 2024 at 8:00
Add a comment |
- Open the system menu from the right side of the top bar.
- Select Wi-Fi Not Connected or the name of the wireless network to which you are already connected. The Wi-Fi section of the menu will expand.
- Click Wi-Fi Settings.
- Press the menu button in the window's top-right corner and select Turn On Wi-Fi Hotspot….
Note: If you are already connected to a wireless network, you will be asked if you want to disconnect from that network. A single wireless adapter can connect to or create only one network at a time. Click Turn On to confirm.
You can also connect to the wireless network by scanning the QR Code on your phone or tablet using the built-in camera app or a QR code scanner.
Improve this answer
edited Aug 24, 2022 at 6:52
answered Aug 24, 2022 at 6:29
Ajith RedrigoAjith Redrigo
11933 bronze badges
1
-
This dosen't answer my question
–smallest quanta
Commented Aug 25, 2022 at 1:36
Add a comment |
When I open GNOME settings to the WiFi page, the "create hotspot" option is initially greyed out. Switching to any other settings page and coming straight back makes the option available. Similarly, if I first open GNOME Settings to a different page (ie. bluetooth from the shell top right menu), and thereafter navigate to the WiFi pane, then the option is available.Steps to reproduce:
Solution:
- Open GNOME Settings
- Try to activate hotspot, it is greyed out
- Switch to "Network" or "Bluetooth" or "Background" setting page
- Back to WiFi "Activate hotpot" menu option is available
Improve this answer
edited Sep 22, 2023 at 5:50
answered Sep 22, 2023 at 5:45
Khurram SahilKhurram Sahil
111 bronze badge
Add a comment |
For me, I go to Edit Connections...
and under Wi-Fi Security
choose option Enhanced Open
. It is a new Wifi protocol that does not require passwords but is still secure.
The WPA & WPA2 Personal
option used to work for me, but after an upgrade it no longer works. Anyway, the above setting works for me now.
Improve this answer
answered Nov 7, 2024 at 8:43
Yan King YinYan King Yin
38422 silver badges1212 bronze badges
Add a comment |
For me, I used the following commands:
$ nmcli device statusDEVICE TYPE STATE wlp1s0 wifi connectedenp0s31f6 ethernet connected
Now add the following lines:
$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward$ sudo iptables -t nat -A POSTROUTING -o enp0s31f6 -j MASQUERADE$ sudo iptables -A FORWARD -i wlp1s0 -o enp0s31f6 -j ACCEPT$ sudo iptables -A FORWARD -i enp0s31f6 -o wlp1s0 -m state --state RELATED,ESTABLISHED -j ACCEPT
Improve this answer
answered Feb 15 at 18:31
Bradley OkenoBradley Okeno
1
New contributor
Bradley Okeno is a new contributor to this site. Take care in asking for clarification, commenting, and answering.Check out our Code of Conduct.
Add a comment |
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
- networking
- network-manager
- ethernet
- hot-spot
.
Not the answer you're looking for? Browse other questions tagged
- networking
- network-manager
- ethernet
- hot-spot
.