Swiroset.com

Powering future

Windows 10 no intranet/LAN connection (HOSTS file fix)

Windows 10 no intranet/LAN connection (HOSTS file fix)

The “HOSTS” file in Windows and other desktop operating systems is designed to provide the system with a local version of the “DNS” system.

DNS (Domain Name System) is the global infrastructure behind the way the “web” works. If you type “Google (.) com” in the URL address bar, the DNS network delivers the correct IP address for your computer to access.

While this works fine with the “WAN” (Wide Area Network), when it comes to the “LAN” (Local Area Network), sometimes there can be issues with the file, preventing the system from being able to connect to others.

The solution is to make sure that if you’re looking to build any kind of local network functionality, you can connect to the right systems. This tutorial explores how to do this.

HOSTS file + local network functionality

If you have a local network, it may be the case that you have added a printer or some other resource, and you want to give people easy access through a “domain name”.

Since the Internet Domain Name System isn’t really designed for LAN functionality (although it can point domains to local IP addresses), it deals with the HOSTS file to ensure it has the ability to route domain names to specific IP addresses. .

Unfortunately, it can be the case that this file gets corrupted or does not have the correct IP addresses stored, which causes problems with the LAN.

To make sure that this is not the cause of the problem, and that you can resolve any of the issues that might be related, you need to make sure that the HOSTS file is OK.

You can do this by following the steps outlined here…

HOSTS File Solution Steps

1. Access the file

The first step is to make sure the file is accessible and editable.

To do this, you need to be able to load it, which can be done by following these steps:

Windows 10 / 8

  • Press the “Windows” + “S” keys on your keyboard

  • Type “Notepad”, right click on the first listing and select “Run as administrator”

  • When Notepad loads, click “File” > “Open”

  • Navigate to “c:WindowsSystem32Driversetc”

  • Select the “hosts” file to open it

Windows 7/Vista

  • Click “Start” > “All Programs” > “Accessories”

  • Right click on “Notepad” and select “Run as administrator”

  • In the top menu, select “File” > “Open”

  • Navigate to “c:WindowsSystem32Driversetc”

  • Select the “hosts” file and open it

2. Remove any false references

The next step is to make sure that the file has all the correct references inside it.

Typically, it should contain a series of “commented out” lines (starting with #) followed by a list of IP addresses (xxx(.)xxx(.)xxx(.)xxx) and domain names (x (.) com) .

Listings in a “healthy” HOSTS file should simply have the lines commented out; if there are others, you’ll need to make sure they’re listed correctly (they’re probably from some apps on your system).

The only time it would be harmed is if your system ever had a virus (which often dilutes the “HOSTS” file with fake websites).

If you don’t have any domain/IP listed, it could suggest a lack of connectivity which I’ll explain in the next paragraph.

3. Make sure you add the correct IP addresses

Once inside the HOSTS file, you need to make sure that any of your LAN IP addresses are listed correctly.

For example, we had a printer that we accessed via //Printer-1.

Unfortunately, the printer broke down, which led us to buy another one. This new printer was renamed and became inaccessible to 90% of the network.

The way to fix this was to simply change the printer’s IP address in the HOSTS files of our various networked systems.

This not only allowed us to redirect the various requests to the new printer, but also ensured that we were running the HOSTS files correctly within the system.

If you do this, and then close the file after saving it, you will need to reboot for the changes to take effect.

Leave a Reply

Your email address will not be published. Required fields are marked *


*