How to Share Wired Internet Via Wi-Fi and Vice Versa on Linux

In this article, you will learn how to share a wired (Ethernet) internet connection via a wireless hotspot and also how to share a wireless internet connection via a wired connection on a Linux desktop.

This article requires you to have at least two computers: a Linux desktop/laptop with a wireless card and an Ethernet port, then another computer (which may not necessarily be running Linux) with either a wireless card and/or an Ethernet port.

Sharing Wired(Ethernet) Internet Connection Via Wi-Fi Hotspot

First, connect your computer to a source of internet using an Ethernet cable as shown in the following screenshot.

Connect Ethernet Cable
Connect Ethernet Cable

Next, enable Wireless connections, then go to Network Settings as highlighted in the following screenshot.

Enable Wireless Connection
Enable Wireless Connection

Then click Use as Hotspot as shown in the following screenshot.

Use as Hotspot Feature
Use as Hotspot Feature

Next, from the pop-up window, click Turn On to activate the wireless hotspot.

Turn On Hotspot
Turn On Hotspot

Now a wireless hotspot should be created with a name defaulting to the hostname e.g tecmint.

Wireless Hotspot Created
Wireless Hotspot Created

Now you can connect another computer or device via the hot-spot to the internet.

Sharing Wi-Fi Internet Connection via Wired(Ethernet) Connection

Start by connecting your computer to a wireless connection with access to the internet e.g HackerNet in the test environment. Then connect an Ethernet cable to it and go to Network Connections.

Connect to Wireless and Enable Ethernet
Connect to Wireless and Enable Ethernet

From the pop-up window, select the Wired/Ethernet connection, then go to its settings as described in the following screenshot.

Select Network Connection Interface
Select Network Connection Interface

Under the connection settings, go to IPv4 Settings.

Select IPv4 Settings
Select IPv4 Settings

Under the IPv4 settings, set the Method to Shared to other computers as shown in the following screenshot. Optionally, you can add the IP address to define the network to use. Then click Save.

Select Share to Other Computers
Select Share to Other Computers

Next, turn the wired connection off then on, to activate it once more. Then open it under Network Connections, it should now be configured for sharing (by having a default IP address of 10.42.0.1) as shown in this screenshot.

Sharing Wired Connection with Other Computers
Sharing Wired Connection with Other Computers

Note: You can also share a bridged interface the same way as the wired interface as shown in the following screenshot.

Share a Bridged Interface with Other Computers
Share a Bridged Interface with Other Computers

Go ahead and connect another computer to the other end of the Ethernet cable or an access point to serve many computers/devices. For any inquiries, reach us via the feedback form below.

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

Aaron Kili
Aaron Kili
Contributor
About the author

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

13 Comments

Leave a Reply
  1. This creates a subnet at 10.42.0.1 and uses dhcp. I need to share without dhcp and use the same network as that connected to the internet, using the dhcp from the upstream router.

    Any thoughts?

    Reply
  2. Is it possible to create a local hosted network over wifi with Linux? I do not require internet. Want a mobile emby server.

    Reply
      • I followed your instructions to the letter even though they were extremely dated and the screenshots bearded no resemblance to my mint. Predictably… Nothing worked at all. Do I need to configure my Router in any way? I knew your instructions would fail. I’ll further bet that you will ignore my post.

        Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.