Skip to Content
Previous

Edit the Hosts File

By Currie

The `hxehost` IP address is private to the VM. In order for applications on your laptop (like your web browser) to access `hxehost`, add the `hxehost` IP address to your laptop's hostname map.

Details

You will learn

You’ll learn how to configure your host machine to communicate with the server.


Step 1: Update `etc/hosts` on Windows.

If you installed the VM installation package to a Windows machine, follow this step to update the etc/hosts file.

  1. On your Windows laptop, navigate to C:\Windows\System32\drivers\etc.

  2. In Administrator mode, open hosts in Notepad. See your operating system Help for information on opening applications in Administrator mode.

  3. In a new uncommented row, add the IP address and hxehost. Save your changes.

    Spacing is important. Make sure your hosts file in Notepad looks like this image.

    loio7c25cdb7a8214429b5f12edb3418f527_HiRes
Step 2: Update `etc/hosts` on Mac and Linux.

If you installed the VM installation package to a Mac or Linux machine, follow this step to update the etc/hosts file.

  1. On your Mac or Linux machine, start the Terminal application.

  2. Enter the following command:

    sudo sh - c 'echo <hxehost IP address>    hxehost >> /etc/hosts'
    

Updated 04/17/2018

Time to Complete

2 min

Beginner

Tags

Prerequisites

Next
Back to top