Ask Your Question
3

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

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

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

Comments

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?

steveebey73742 gravatar imagesteveebey73742 ( 2017-07-02 20:57:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

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

villykruse gravatar image

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

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.

   uri
       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 https://ask.fedoraproject.org/en/ques...

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 298 times

Last updated: Jul 03 '17