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

Hello,

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,

Richi

Owner Juapo2Services.com

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

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 became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

22 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?

      Regards,
      Richi

  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.

      Regards,
      Richi

  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 192.168.1.0/24 network.
    my tv is in another network. now i am not able to browse my dlna server in the 192.168.1.0 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 it..it dosent happen..as 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.

      Regards,
      Richi

  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?

    thanks

  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.

      Regards,
      Richi

  8. Saurabh says:

    Actually my HDD is http://www.flipkart.com/seagate-stam2000302-2-tb-external-hard-disk/p/itmdeagv9fagsahp?pid=ACCDEAGR2GZBZKCU&ref=e3f3e2dc-9a1b-4c0b-994f-5fe195237084 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

    Thanks
    Saurabh

    • 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 http://www.speedtest.net/ and start a test to see how much “internet bandwidth” is being passed by your ubuntu laptop.

      Tell me the output, please.

      Regards,
      Richi

  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.

      Regards,
      Richi

  10. Adam says:

    Hey,

    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 192.168.0.1…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.
    b

  13. Charles Mac says:

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

    Charles

    • 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.

      Regards,
      Richi

Leave a Reply

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


7 − = 6

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>