Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to assign hostname to devices in home network

📅 2014-Jul-07 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ hostname, ip, static ⬩ 📚 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 dad-notebook mom-pc mom-smartphone son-tablet home-htpc

Tried with: Ubuntu 14.04

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email