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.

Subscribe with Add to Google or Subscribe to netvibes

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <table> <thead> <tbody> <tr> <td> <h2> <h1> <h3> <h4> <h5> <div> <object> <embed> <param> <br>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal5>, <drupal6>, <javascript>, <mysql>, <php>. The supported tag styles are: <foo>, [foo].
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options

To prevent automated spam submissions leave this field empty.
Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.