After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696793 - Lost feature: "Shared for other computers" IPv4 link type
Lost feature: "Shared for other computers" IPv4 link type
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 708504 709547 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-28 16:13 UTC by Elad Alfassa
Modified: 2021-06-09 16:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Add "Shared" setting for IPv4 / IPv6 (2.42 KB, patch)
2014-08-14 22:53 UTC, Elad Alfassa
none Details | Review
Patch to add UI for IPv4 shared method (6.40 KB, patch)
2017-09-15 02:34 UTC, David Lechner
needs-work Details | Review
Screenshot of change (38.36 KB, image/png)
2017-09-15 03:03 UTC, David Lechner
  Details

Description Elad Alfassa 2013-03-28 16:13:53 UTC
In gnome 3.6 and earlier, nm-connection-editor offered an option to select "Shared for other computers" under the Method label of the IPv4 Settings tab on wired connections.

In the new Network panel, the only possible options are "DHCP", "Manual" and "Link Local only"

This feature ("Shared for other computers") made it possible to easily share your wifi/3G connection with other devices.

Usecases:

1) You only have one 3G modem, and want to demonstrate GNOME's awesomeness in a stand in a conference. You have two laptops, but there's no wifi available. You then use "shared for other computers" to easily and securely share your 3G connection with the second laptop via an Ethernet cable.

2) You want to provide network access to devices with no builtin wifi support, ie. Raspberry Pi.

Technical:

When using "Shared for other computers" your computer acts as a DHCP server that's active only on the Ethernet port selected, thus enabling "plug&play" network sharing to a secondary device (of which your computer will be the gateway) using a standard Ethernet cable.

This feature was not removed from NetworkManager, and if you use nm-connection-editor to set it up, the combo box in the Network panel of Settings will be empty until you chose another option.

Quick fix:

Add the "Shared to other computers" option to the Addresses combo-box on the Network panel profile editing window.
Comment 1 Julien Olivier 2013-05-16 19:44:38 UTC
Actually, in gnome 3.8, there seems to be a checkbox for that. But it doesn't work.
Comment 2 Elad Alfassa 2013-05-16 19:46:28 UTC
(In reply to comment #1)
> Actually, in gnome 3.8, there seems to be a checkbox for that. But it doesn't
> work.

What checkbox? "use this connection only for resources on this network" means something completely different.
Comment 3 Julien Olivier 2013-05-16 20:06:46 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Actually, in gnome 3.8, there seems to be a checkbox for that. But it doesn't
> > work.
> 
> What checkbox? "use this connection only for resources on this network" means
> something completely different.

Well, in the "Identity" section, I have a "Make available to other users". I thought it might be the one. But I guess it's just something to let other users from the same computer to be able to launch the connection...
Comment 4 Paolo Borelli 2013-08-12 08:10:52 UTC
I just upgraded my desktop box to F19 and I miss this feature too.
Comment 5 Bastien Nocera 2013-09-21 11:26:48 UTC
*** Bug 708504 has been marked as a duplicate of this bug. ***
Comment 6 Bastien Nocera 2013-10-07 09:57:12 UTC
*** Bug 709547 has been marked as a duplicate of this bug. ***
Comment 7 Sri Ramkrishna 2014-02-04 22:03:41 UTC
Would be nice to see this as a feature for 3.12?  Do we know why it was removed ?
Comment 8 Elad Alfassa 2014-08-14 22:53:40 UTC
Created attachment 283418 [details] [review]
network: Add "Shared" setting for IPv4 / IPv6

Here's a patch. It was easier than I thought. The enums were already there, so it might be that this option was simply forgotten by the person who implemented the panel.

A review would be appreciated.
Comment 9 Bastien Nocera 2014-08-15 08:32:37 UTC
(In reply to comment #8)
> Created an attachment (id=283418) [details] [review]
> network: Add "Shared" setting for IPv4 / IPv6
> 
> Here's a patch. It was easier than I thought. The enums were already there, so
> it might be that this option was simply forgotten by the person who implemented
> the panel.
> 
> A review would be appreciated.

I'm really not convinced that this is the best UI for this. I wouldn't look under "method" to share the connection, I would expect a toggle somewhere instead. Needs designer input.
Comment 10 Elad Alfassa 2014-08-15 11:51:31 UTC
I discussed this with aday on IRC.

Here is his mockup: https://dl.dropboxusercontent.com/u/5031519/connection-sharing.png

From implementation point of view I assume that when the user clicks the connection sharing switch we'd need to create a temporary NetworkManager connection with sharing enabled and switch to it, and delete it when the connection sharing is turned off.

It would also make sense to disable the profile selector when sharing is on, because there's no point in switching profiles when you have sharing enabled.

Another point to consider is shell integration: it would make sense to remind the user sharing is active. In the menu we could write "wired (sharing)" instead of "wired" and we'd need an entry labeled "Turn off network sharing" to turn this off from the shell itself.

I'm starting to feel this is above my skill level to implement correctly.
Comment 11 Ignacio Casal Quinteiro (nacho) 2014-10-18 09:47:23 UTC
Now that I bought the rasp pi I really miss this feature... :(
Comment 12 Lapo Calamandrei 2014-10-18 15:52:09 UTC
In my initial design I had the equivalent to "Use as HotSpot..." for wired networks as "Use as a Router..." to cover the aformentoned use cases. My initial design didn't consider profiles tho, I'll try to adapt that logic to what we currently have and report
Comment 13 Lapo Calamandrei 2014-10-18 16:39:42 UTC
as a temporary work-around tho is possible to use a bridge which is doable in the network panel
Comment 14 David Lechner 2017-09-15 02:34:56 UTC
Created attachment 359823 [details] [review]
Patch to add UI for IPv4 shared method

This patch has been tested that it works as described.
Comment 15 David Lechner 2017-09-15 03:03:43 UTC
Created attachment 359824 [details]
Screenshot of change

This is what it looks like with the patch applied
Comment 16 Georges Basile Stavracas Neto 2018-01-27 00:54:44 UTC
Review of attachment 359823 [details] [review]:

Feature-wise, I think this would be a good addition to Settings. I'm just not sure that the approach taken in this patch is the right one (adding another radio button there). We need some design input here.
Comment 17 David Lechner 2018-01-27 02:01:55 UTC
Can we put a time limit on this? This issue has been sitting here for years waiting for design input already. For example, if no one makes a better suggestion within one month, can we please take this as it is.
Comment 18 Georges Basile Stavracas Neto 2018-01-27 02:03:26 UTC
(In reply to David Lechner from comment #17)
> Can we put a time limit on this? This issue has been sitting here for years
> waiting for design input already. For example, if no one makes a better
> suggestion within one month, can we please take this as it is.

We're running short on designers, unfortunately. I don't think "taking as it is" is a good option either.
Comment 19 Julien Olivier 2018-01-27 10:28:24 UTC
> We're running short on designers, unfortunately. I don't think "taking as it
> is" is a good option either.

If we're running short on designers, that means that the only alternative to "taking as it is" is "not taking it at all", which is not an option when our users actually need the feature. So, please, just commit it and look for a better design later.
Comment 20 Bastien Nocera 2018-01-28 06:04:22 UTC
We'll take a patch that makes it work similarly to the Wi-Fi hotspot feature.
Comment 21 André Klapper 2021-06-09 16:33:32 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.