10) Modify Host file

<-- Previous    Next –>

To make it easier to access our Raspberry Pi from our local network we want to create a local name so that we can access from our computer using a name rather than an IP address.

So we want to create new host name that looks like: paulsite.local

If you are using a Linux based computer you can do this by:

sudo nano /etc/hosts

and add in a line:

ipaddress paulsite.local

Where the ipaddress is the fixed IP Address of the Raspberry Pi.

If you are using a Windows computer, then there is a hosts file in the windows drivers folders which you add line to.

On a Windows 10 computer the hosts file is located at C:\Windows\System32\drivers\etc

Edit the hosts file using a text editor such as notepad.

So, now once the web site is set up, we will be able to access it using the host name http://paulsite.local rather than using the IP address or using an internet URL.

<-- Previous    Next –>