Network Setup for a Raspberry Pi Running XBian


The Raspberry Pi can be used as a stand alone device, but most of the times you will want to connect it to your home router via an Ethernet cable or a USB WiFi adapter so it gets access to the Internet.

By going though this tutorial, you will learn:

  • How to connect your Raspberry Pi to a router using an Ethernet cable
  • How to install and configure a WiFi adapter
  • Find out the IP address of your Raspberry Pi

Connecting to a router using an Ethernet Cable

The fastest way to get your Pi connected to your home network is by using an Ethernet cable like this one:

Network Cable RJ45 Cat 5E 2m - Black
  • Network Cable CAT 5E, 2m Black
  • Connector Type A: RJ45 Plug
  • Connector Type B: RJ45 Plug
  • Cable Length: 2m
  • Conductor Size: 24AWG
$5.00 In stock.

Just connect one end of the cable to the Pi and the other end to the router, like on this image:

Connecting a Raspberry Pi to a Router

If your router is configured with DHCP (Dynamic Host Configuration Protocol) your Pi should be able to connect to the Internet with no problems as the router will automatically assign an IP address to your Pi.

If DHCP is turned off, you have to options: you either enable it back in your router or you will have to enter an IP address and netmask that are part of your network.

Getting a USB WiFi Adapter

To avoid headaches just get an adapter that is compatible with the Raspberry Pi.

The following adapters are compatible:

Wi-Fi USB adapter based on Atheros AR9271

This is the preferred adapter for wireless XBMC Raspberry Pi media centres. The Atheros AR9271 chipset ensures the Raspberry Pi will stream high definition videos effortless. The high gain 6dbi antenna allows longer distances from your Wi-Fi router. It uses the latest 802.11n wireless technology and can support data rates of up to 150Mbps, compared with older 54Mbps 11g products. Compatible with Raspberri Pi, Windows, LINUX and Mac.

$12.00 In stock.

WiFi adapters can use as much power as the Raspberry Pi. Just make sure you use a power adapter that can deliver more than 2A if you're going to be using WiFi, a wireless keyboard and a wireless mouse. These power adapters will work just fine:

5V 2A USB Power Adaptor/Charger

Charger for mobile phones, Tablet PCs, Raspberry Pi and other devices that can be charged or powered with a 5V USB connection.Please note the USB cable is not included.

$8.00 In stock.

Setting up Wifi in XBian

Before starting this setup please make sure you boot your Pi with the WiFi adapter connected in one of the USB ports.

Setting up WiFi requires that your router is broadcasting the SSID. Make sure you have "Broadcast SSID" set up on your router! This will not work with "private" SSID setups.

In XBMX/Kodi go to Programs->XBian-Config.

XBian-Config has several sections, to setup the network, select the system section and press enter.


Use  the arrows of your keyboard and highlight Select interface to configure. Press enter until wlan0 is selected.

Step 2.

Use the arrows of your keyboard and highlight SSID. A scan will start automatically that will show available WiFi networks.

Step 3.

Select your WiFi network from the list by pressing enter when your network is highlighted, then enter the credentials (password) for that network. Use the arrows of your keyboard to select Done, then click enter.

Finding Your Pi's IP Address in XBian

If you want to check your IP address in XBian, in XBMC/Kodi you have to go to System->System Info->Network.

The following images illustrate the process:

XBMC/Kodi System
XBMC/Kodi System -> System Info
XBMC/Kodi System -> System Info -> Network

Remember! If your IP address starts with 192.168 or 10.0 then its an internal address - that means you can get OUT to the Internet but you cannot have someone outside your home or network reach your Pi via the IP address. This is important if you want to have a webserver running on a Pi that outside people can reach. In general, its much safer to keep your Pi on an internal network so it can't be hacked as easily!


There are no comments yet, be the first one to write a comment.
Add comment

* - required field


CAPTCHA image for SPAM prevention If you can't read the word, click here.

Continue Shoppping View Cart
Continue Shoppping View Wishlist