Windows don't do any changes to that file.
Win v1803 problem is that this look up doesn't work as it does in previous versions.
Just add your own information to the file, but don't remove any comment marks (#).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Here is short description how I get my network sharing work with Windows 10 v1803.
(I haven't never use Homegroup so I start directly from step 2.)
Disconnect from non-existing Homegroup if you have used it.
2.1. All PC's: Check Network profile and Network discovery and Share settings
Sometimes this selection to change between Private and Public network profile is missing from Settings / Networks page. In that case profile must change by PowerShell. Right Click Windows Icon (Start button) and open PowerShell (Admin) and use following commands to get interface index number and change profile to Private (or Public):
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private
2.2. All PC's: Check Network Discovery and Share settings
Push Win Key and type "Services", locate these services.
- Function Discovery Provider Host
- Function Discovery Resource Publication
- SSDP Discovery
4.1. Check your current shares.
Open file explorer and type \localhost to address bar to see what shares are made in this computer.
4.2. Create new share (here I use folder "Test").
(Setting "Turn on sharing so anyone …" in Step 2.2. make share for folders in C:\Users automatic.)
Folder is now shared and Network share path is: \PCNAME\Test
4.3. Safe way to share folders.
Create user account to all users on your network to whom you want to give access to shared resources.
Use same user ID and password which they have on their own computers.
Right click "Test" and open Properties and select Security tab to see current settings.
Default security settings are shown in next picture.
Those settings allow access to shared folder(s) only for those users who have user ID on that computer.
4.4. Sharing folder "Test" to Everyone" (Very unsafe setting! Think carefully do you need to select this!)
If you want that everyone have access to that share then go to Security tab and:
Now anyone on your home network should have access to shared folders without credentials or having user account on your computer.
This should be cover the essentials to sharing your data over local network. This share is not limited to C:\Users folder, every folder can be handled like shown in steps 4.
Now your PC's should visible, but if not then try to reset all network settings:
Go to Settings / Network & Internet / Status, scroll down to find "Network reset, on next window click "Reset Now" button.
It will takes about 5 min to perform this reset and then PC reboot automatic.
When you sing in first time you get notification something like "Do you want your PC to be access by other computers", click Yes for that.
If you get error message "Windows cannot access \PC_NAME" when you try to connect shared folders then continue to step 6.
If you get error "\PCNAME path not found" you can solve this by adding your PC's and IP-addresses to hosts file.
6.1 New routers (or modems) may have feature to remember which IP-addresses are assign to each device, but with older routers (or modems) you have to check that your router or modem is set give predefined IP-addresses linked to each PC's MAC-address.
This way PC's will get same IP-address every time when it ask IP-address form router (or modem) DHCP-server.
There should be some kind of list of PC names with MAC addresses and given IP-addresses of each connected PC.
Picture show that list on my router. In my case with old router I had to select manual assignment in each line.
6.2. Add all PC's IP-addresses and Names to hosts file (C:\Windows\System32\drivers\etc\hosts).
You can check your IP-address and PC's name by opening command prompt (CMD)
For IP-address type command: ipconfig you get line like this: IPv4 Address ………. 192.168.100.101
For PC name type command: hostname
Write down IP-address and Name of each PC and add those to that hosts file.
To edit copy hosts file to some another location, right click it and use notepad to edit and save it. Replace original file with edited file. Because hosts file is located on system folder replace will ask administrators rights to perform it.
# 127.0.0.1 localhost
# ::1 localhost
192.168.100.101 PC1 # Ethernet
192.168.100.102 PC2 # Ethernet
192.168.100.202 PC2 # Wi-Fi
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Windows don't do any changes to that file.
Win v1803 problem is that this look up doesn't work as it does in previous versions.
Just add your own information to the file, but don't remove any comment marks (#).
OK I searched for how this host file works, names and ip address in here have preference over the normal look up service. Currently there is nothing in my file but comments.
"There is a file called hosts"
Yes, that file C:\Windows\System32\drivers\etc\hosts is not a sample it is actual file that contain hosts -table, just add IP-addresses and your PC names to that table as shown on my example.
My issue is as you describe in 6 above:
If you get error "\PCNAME path not found" you can solve this by adding your PC's and IP-addresses to hosts table.
I can not find the file hosts -table. There is a file called hosts in the directory specified but it is a sample file not modified since installation. File explorer is set to view system files and a search in system32 does not find it.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more