How to Share Wireless Connection via Ethernet Cable in Ubuntu to Any Device


Have you ever wanted to have internet in a PC that doesn’t have a wireless card, or maybe even play with your Xbox online, but the modem’s too far? Well, with this tutorial, you will learn how to share a computers wireless connection via Ethernet.

Difficulty level: Easy

1. In Ubuntu, look for the connections icon at the top right of your desktop. Click on it.

2. Go to Edit Connections.

3. In the ‘wired’ tab, select the first connection, and click to edit it.

4. Go to the IPv4 Settings tab.

5. In the drop down, select Share to other computers.

6. Make sure at the bottom, the check box to share to all users is checked.

7. Save & close.

~You will probably need to reboot your system.

8. Connect one end of your Ethernet cable to your computer’s Ethernet port, and connect the other end to whichever device you wish to share the connection to, it can be a PC, an Xbox, or whichever thing you can think of.

That’s it! If you get any problems, please let me know and I’d be more than glad to assist you. I personally, use this for a video gaming console, and it works like a charm.

Best Regards,



Looking for quality Linux Web Hosting? Try out Arvixe web hosting and you won’t be disappointed.
Tags: , , , , , , , , , , | Posted under Linux Server Admin, Linux Usability | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

23 Comments on How to Share Wireless Connection via Ethernet Cable in Ubuntu to Any Device

  1. William Rosenberg says:

    I’m a complete newbie, so sorry if this is inappropriate. I tried this on two laptops running Ubuntu, be of which I can’t get the WLAN card to work. When I changed the Ethernet connection on the first, it started cycling between connected and disconnected. It’s continued to do that despite rebooting both computers. I looked at the ifconfig for the 2nd laptop and the initial IP settings were completely off for my home intranet, so I changed them manually. I then checked both laptops and the 1st is fully connected via wifi but cannot ping the IP address for the 2nd laptop. The 2nd cannot ping anywhere. The 1st continues to cycle between connected and disconnected at about 1Hz. Thanks.

    • Hello,

      Today I tried to reproduce your error, and I think I’ve got it. I also have two laptops here running Ubuntu, the first one, runnning Ubuntu 9.10 Karmic Koala, managed to pass internet to the other one; the second one, running latest Ubuntu (like 10.xx), had the problem you are having. I believe it is a problem with the OS. Even though it kept saying ‘connected’ and ‘disconnected’, it could transfer internet at random, but just for no more than 5 seconds each.

      If you are not getting internet at any time, make sure you are using an Ethernet cable and not a Crossover one. You can Google how to difference them. Also, you can try rebooting, I guess you have done it already, but just to make sure. Double check that you are actually modifying the tab that says IPv4 Settings and not IPv6’s. Hmmm.. what else? Well, try that and let me know what happens. Btw, which Ubuntu version are you using?


  2. William Rosenberg says:

    Thanks for the quick answer. Both have 11.10 Oneiric Ocelot. The cable’s the same one I was using to connect the 2nd laptop directly to the router which was working well. (I wanted to move it closer to me with your workaround). I’ve rebooted both laptops more than once. Other thoughts?

    • Hello,

      I have managed to get it working by doing these:
      1. While editing connections, click on the IPv6 tab, and select Ignore from the dropdown.
      2. Run in terminal: sudo killall dnsmasq
      3. Reconnect.

      Let me know if it works for you.


  3. Roy says:

    Hi Richi, I had the same problem and I could solve it by disabling IPv6. Can you please explain about the reason? Thanks …

  4. Anandan says:

    i shared the wifi internet connection through ethernet to my sony tv. now i can browse and use skype in my tv.
    my question is, my laptop is in network.
    my tv is in another network. now i am not able to browse my dlna server in the network. how to configure ip details while sharing the internet connection on ethernet.

  5. Aravind says:

    This works fine! but now i need to do the reverse..that is access the device connected on the lan from the internet..when i try to ping dosent in 1) i dont know the address to ping 2)even if i set a static ip..its not able to ping it!

    • Hi,

      In the second computer:
      Execute iwconfig in your terminal and see which network device is being used. Execute ifconfig to see the ip.

      Make sure your modem or router firewall is not blocking direct access with ips.


  6. José Xavier says:

    I’ll try it later with Raspberry Pi… That “Share to other computers” have a dhcp server or I need to set an static ip address to RPi first?


  7. Saurabh says:

    Hi I have a External hardrive seagate 2TB that I caoonect to my pc using above technique but data transfter speed is too slow 1.5mbps but when I connect this harddrive to Macbook using same technique it gave me fairly 20mbps or above. please help me i am fnew to ubuntu

    • Hello,

      What does a HDD has to do with this? Do you connect it wirelessly? If the answer is yes, make sure you are connecting it to a 3.0 or 2.0 port.

      Let me know if you still have problems.


  8. Saurabh says:

    Actually my HDD is ideally I should connect it through WiFi and use it through DLNA (as this HDD and my laptop or in same network)but I tried and speed is agin slow. So Ithought I should connect it direct to my laptop through lan wire so I have to share network on LAN port using your technique so that HDD is shown in network but again speed is slow of 1.5 Mbps and I dont understand what you mean by 3.0, 2.0 are talking about USB ports, if yes my HDD doesnt connects using USB its an network storage media


    • Hello,

      What I can think right now to try is to check if your Ubuntu is limiting the bandwidth for the HDD somehow.
      – To test if the problem is in the laptop or in the HDD, do the following:
      1. Instead of connection your HDD, connect another device, preferably a laptop or desktop (Device 2).
      2. On Device 2, go to this address and start a test to see how much “internet bandwidth” is being passed by your ubuntu laptop.

      Tell me the output, please.


  9. althaf says:

    Hi, I want to use the LAN network as a Wifi connection n my MOb through my Laptop.

    DId the above steps but i am not able to see a wifi connection in my mob.

    Can you please help me here

    • Hello,

      This article works the other way around. Computer A receives wireless connection and shares the connection via ethernet to computer B. You’re wifi card must be able to create a wireless hotspot. If you’re wifi card is capable of doing that, let me know the model of the card so I can assist you with the instructions.


  10. Adam says:


    Thanks for the article… unfortunately, this isn’t working between two Ubuntu 12.04 LTS devices… one tower I built and one Chromebook (Acer C7) fitted with ChrUbuntu. The sharing works with my Mac laptop (which has similar Internet Sharing services) but I need that laptop for my day-to-day work. I’ve turned off IPv6 options on the two Ubuntu devices, but to no avail. Any help on this is appreciated. Thanks!

  11. bloo says:

    Hey RIchi,

    I configured my ubuntu eth0 to share my internet connection (originating from WIreless) and got an error. My eth0 keeps going between on and off…and has no IP. Not…not anything. Any thoughts?

    Thanks, Bloo

  12. bloo says:

    I found it. There was an entry in the Route (button). I removed it. It works now. Thanks.

  13. Charles Mac says:

    Hi! Is there anyway to configure the subnet address block so all my devices will access without reconfiguring to DHCP and without having to change the subnet gateway


    • Hello,

      I’d recommend posting your question in the Ubuntu forums, as I, to be honest, don’t really know how to do it. Yet, if you get stuck at something they tell you there, let me know, I may be able to help.


  14. Mark Dawson says:

    I will try to execute this by following your instruction. Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *