Everytime I lose my internet connection, this window appear on the screen:
When the connection is reestablished, the windows closes itself if I click on try again. I can close the window any time too
What is this window? And why it appears?
This is the Captive Network Assistant (CapNet Assist). It attempts to find out if your network traffic is being caught in a captive network portal (like what you find in the airport or a coffee shop) and assist you in logging in to this captive network. elementary is still ironing out a few issues with how and when it decides to appear.
If CapNet Assist is showing up unexpectedly, please check in Launchpad to make sure that this case has already been reported. If it hasn't been reported, please make a new report describing the situation in which it appears by following the elementary bug reporting guide.
I have faced this issue when working with static network profiles in Elementary OS Freya 0.3 and switching between local networks without a public gateway. Like Daniel had mentioned, this is a Captive Portal Assist which allows users to connect to public WiFi hotspots and immediately traps in a minimalistically launched Midori browser to complete certain procedures to connect to the Internet.
After digging through some links, I did find an external article that presents a solution to disable this functionality.
Essentially, it asks you to run this command:
sudo chmod -x /etc/NetworkManager/dispatcher.d/90captive_portal_test
Disclaimer: Although this solves the issue for me, I do not fully understand its implications. Please use it at your own discretion.
Article credit: Zaantarovo
90captive_portal_test
. Nothing too dangerous :)
Disclaimer: Although this solves the issue for me, I do not fully understand its implications. Please use it at your own discretion.
In reference to Arvaind Asuri Balaji answer (who then referenced an article by Zaantarovo)
Here's my newbie take on what the command does, piece by piece:
/etc/NetworkManager/dispatcher.d/90captive_portal_test
is the file that controls/dictates the odd window so it shouldn't be anything too bad
and besides just the run the command again but replace -x
with +x
if things do mess up