Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrian van Vlymen
12,637 Pointsunable to save C:/Windows/system32/drivers/etc/hosts
I was not sure able to save to change my ip address and http on my sublime text 2 and notepad++? It refuse to save. I close all my files. Any one know how to solve it?
unable to save C:/Windows/system32/drivers/etc/hosts 192.168.10.10 homestead.app and 192.168.33.20 track.dev
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
http://127.0.0.1:8000/ you have arrived Laravel http://127.0.0.1/ index of (list of files) http://192.168.10.10/ you have arrived Laravel http://192.168.10.10:8000/ unable to access network http://homestead.app:8000/ unable to access network
homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: C:/Users/Brian/.ssh/id_rsa.pub
keys:
- C:/Users/Brian/.ssh/id_rsa
folders:
- map: c:/Users/Brian/Desktop/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
variables:
- key: APP_ENV
value: local
1 Answer
Brian van Vlymen
12,637 Points- Click on Start Button
- Rt. click on 'Notepad'
- Click "Run As Administrator"
- Click "Continue" on the prompt
- Navigate to C:\Windows\System32\drivers\etc\ using Notepad's 'Open' location option.
- Select 'all files' and then choose the 'hosts' file. Make necessary changes and save!
http://forums.cnet.com/7723-6142_102-351660/c-windows-system32-drivers-etc-hosts-file-cannot-saved/
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsAn alternate to Notepad would be Hosts File Editor which is visual like Notepad but it offers a much nicer UI for editing host entries.