Ubuntu: How to share a wired internet connection

Ubuntu logo

Ever been stuck with a single, wired internet connection, but needing to connect more than one computer to the internet?

You'll be glad to know that with Ubuntu, it's easy to share an internet connection by creating an ad-hoc wireless network. It happened us recently on holiday - we had a single wired network connection, but two laptops. Both machines were wireless enabled.

Here's how to set up the connection:

1) Connect the ethernet cable to the laptop that will be hosting the wireless network. Do a quick check to ensure that you can access the internet from that computer!

2) Click the networking icon at the top right of your screen, and select the Create new wireless network option at the bottom of the menu. You'll be presented with the following dialog:

Creating a new wireless network in Ubuntu

I've filled in some sample details here to help you out. Using the passphrase is a lot more straightforward than a complicated HEX code - you can literally type in a memorable passphrase that you can share with your friends or colleagues.

Once you click the Create button on this dialog, the new network (in this case, 'Interweb') will be available to other wireless computers in the vicinity. They can connect by selecting the Interweb network (if you used my example) from their computers and typing in the passphrase you set up.

Deleting the network

If you decide you want to stop hosting your wireless network, simply right click on the networking icon and select Edit Connections. Go to the Wireless tab, find the connection you created and delete it. Easy!

Video tutorial

Here's a quick video I created showing how to set up a wireless network on your Ubuntu machine.

Comments for Ubuntu: How to share a wired internet connection

can u do the same with wifi and share the internet through the ethernet cord?

android does not connect to such networks sadly :(

it does not work for my android mobile. it cannot see the created wifi.

dude
how does the wireless connection get wired internet to share with other computers?

dont think your method is complete. how does the wireless connection get the wired internet to share??? we need to share the wired connection with the wireless connection so that others who connect to the wireless can also access the internet.

Add new comment