Skip to main content

Updating the Hosts File Across Different Operating Systems

This guide provides step-by-step instructions on how to add the following entry to your hosts file:

127.0.0.1      app.local.corva.ai

Table of Contents

  1. OS X
  2. Linux
  3. Windows

OS X

Step 1: Open Terminal

  • You can find Terminal in the Utilities folder of your Applications folder.

Step 2: Open the Hosts File

  • Type sudo nano /etc/hosts and press Enter.

Step 3: Edit the Hosts File

  • Use your arrow keys to navigate to the bottom of the file.
  • Add 127.0.0.1 app.local.corva.ai to the file.

Step 4: Save and Close

  • Press Ctrl + O to save the file.
  • Press Enter to confirm.
  • Press Ctrl + X to exit.

Step 5: Flush the DNS Cache (Optional)

  • Type sudo killall -HUP mDNSResponder and press Enter.

Linux

Step 1: Open Terminal

  • Use your preferred method to open Terminal.

Step 2: Open the Hosts File

  • Type sudo nano /etc/hosts and press Enter.

Step 3: Edit the Hosts File

  • Add 127.0.0.1 app.local.corva.ai to the file.

Step 4: Save and Close

  • Press Ctrl + O to save the file.
  • Press Enter to confirm.
  • Press Ctrl + X to exit.

Windows

Step 1: Open Notepad as an Administrator

  • Search for Notepad, right-click on it, and select "Run as administrator".

Step 2: Open the Hosts File

  • Go to File > Open, and navigate to C:\Windows\System32\drivers\etc.
  • Change the file type to "All Files", and open hosts.

Step 3: Edit the Hosts File

  • Add 127.0.0.1 app.local.corva.ai to the file.

Step 4: Save and Close

  • Go to File > Save.