A typical home network consists of a wireless router that networks multiple computers, notebooks, tablets, smartphones, HTPC and other devices. These devices can be accessed by using their IP address. However, it is more convenient to access them using a hostname.
Most wireless routers assign dynamic IP address using DHCP. Instead, assigning static IP address to these devices makes it easier to assign a hostname to them later. It is pretty easy to assign static IP address in Ubuntu, Android or Raspbmc. Just make sure that the IP addresses you assign do not clash.
On the Ubuntu computer from which you want to access hostnames, add the mapping from the static IP addresses to hostname to the
/etc/hosts file. You can give any hostname you want! They take effect immediately after the file is closed.
# Add to end of /etc/hosts file 192.168.0.100 dad-notebook 192.168.0.101 mom-pc 192.168.0.102 mom-smartphone 192.168.0.103 son-tablet 192.168.0.200 home-htpc
Tried with: Ubuntu 14.04