Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to assign hostname to devices in home network

📅 2014-Jul-07 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

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.

For example:

# 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