Ask Your Question

How does Fedora detect if my computer has an internet connection?

asked 2017-07-02 10:45:43 -0600

albocc gravatar image

I noticed that the little network icon in the bar at the top of the screen changes if the computer loses or gains access to the internet. I was wondering how this works.

My assumption is that it is probing some public server and if it gets a response, it knows that it is connected to the internet. If that's true, what host is that?

(I am using Fedora 25 GNOME, if that matters)

edit retag flag offensive close merge delete


if you use a router, it could be what tells fedora if the connection is up. also, are you on ppoe, or static ip from your internet service company?

SteveEbey73701 gravatar imageSteveEbey73701 ( 2017-07-02 20:57:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-03 02:52:39 -0600

villykruse gravatar image

updated 2017-07-03 03:27:13 -0600

Network manager can be configured to check a public internet address to check if it is on-line. From the manual page for NetworkManager.conf

This section controls NetworkManager's optional connectivity checking functionality. This allows NetworkManager to detect whether or not the system can actually access the internet or whether it is behind a captive portal.

       The URI of a web page to periodically request when connectivity is being checked. This page should
       return the header "X-NetworkManager-Status" with a value of "online". Alternatively, it's body
       content should be set to "NetworkManager is online". The body content check can be controlled by
       the response option. If this option is blank or missing, connectivity checking is disabled.

See the question

The package NetworkManager-config-connectivity-fedora will set-up this check.

Without this check Network Manager just checks if there is a signal on the ethernet cable or if your wifi is having a signal and is connected. If your router is not actually connected to the internet is not necessarily detected or checked.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-07-02 10:45:43 -0600

Seen: 462 times

Last updated: Jul 03 '17