Skip to content

Hosts file

jwallet edited this page Jul 2, 2021 · 1 revision

Hosts file issues

NHLGames does not have access to the Hosts file? You will have to add the entry line manually.

Disable your anti-virus or other software like malwarebytes while doing these steps
Hosts file location: `C:\Windows\system32\drivers\etc\`   

No write access → Get administrator rights

Start the app with administrator rights. Right click on NHLGames.exe and select Run as an administrator

Hosts file is protected and cannot be modified

You will have to give administrator access to NHLGames, there are two ways:

  • Right-click on NHLGames.exe and select Run as an administrator (answer yes if it asks to restart with admin privileges)
  • Change the permissions (details below)

Using an administrator account (or might work with a user account), browse to C:\Windows\system32\drivers\etc\ and right-click on Hosts, then "Properties" > "Security" > "Edit", select the "users" account or your user account (same as the one that appears when you hit Windows + L), then check "Allow, Full control", click on both "OK" to close the opened windows. After that NHLGames should be able to edit your Hosts.
image

App can't edit the Hosts file, another process is using it or access is denied

Editing the Hosts file with NHLGames:

Open NHLGames and go in Settings tab and select the "Hosts file" drop down list. There are some hosts file actions in this list that you can activate by clicking GO:

  • Select action Copy to clipboard the authentication bypass line
  • Select action View Hosts file content in Notepad (or Open Hosts file location and select Notepad)
  • Paste the line using CTRL+V (or right-click > paste)
  • Save the Hosts file but make sure the filename is hosts, not hosts.txt, and the file type is All Files (*.*), not Text Documents (*.txt)
  • Test the file by selecting the hosts action in NHLGames Test if the NHL.tv authentication bypass works

Editing the Hosts file with command lines:

Open a terminal or a command line by typing in windows menu:
command prompt

In the command prompt, type the following:
ping nhl.freegamez.gq

The response should give you the IP address to use for the hosts entry.
To edit your hosts file, do the following:

  • Press the start button, paste: notepad C:\Windows\System32\drivers\etc\hosts
  • Press Ctrl+Shift+Enter (to run it as an administrator)
  • Add or modify the line that looks like this: xxx.xxx.xxx.xxx mf.svc.nhl.com
  • Replace xxx.xxx.xxx.xxx by the IP address that you got earlier.
  • Save the Hosts file but make sure the filename is hosts, not hosts.txt, and the file type is All Files (*.*), not Text Documents (*.txt)

App can't find the Hosts file → Create one

If you get an error about not being able to find the hosts file, it might be because you don't have any or the app can't find the right one. Make sure that you have the hosts file there, not hosts.txt, in your windows directory C:\WINDOWS\system32\drivers\etc\.

Otherwise, type cmd in the start menu, right click on it and run it as an administrator, then paste this command into the console to create an empty hosts file:

echo > C:\WINDOWS\system32\drivers\etc\hosts

Clone this wiki locally