Skip to main content

How edit host file in windows 10 and windows 11

 Editing the hosts file in Windows 10 and Windows 11 can be done using a text editor like Notepad. However, since the hosts file is a system file, you will need to run Notepad as an administrator to make changes. Here are the steps on how to do it:

Windows 10:

  1. Open Notepad.
  2. Right-click on the Notepad icon in the taskbar and select "Run as administrator."
  3. In the Notepad window, click on the "File" menu and select "Open."
  4. Navigate to the following location: C:\Windows\System32\drivers\etc
  5. Select the "hosts" file and click on the "Open" button.
  6. Make the desired changes to the hosts file.
  7. Click on the "File" menu and select "Save."

Windows 11:

  1. Open Notepad.
  2. Click on the file menu and select "Open with".
  3. Select "Notepad (Administrator)" from the list of apps.
  4. In the Notepad window, click on the "File" menu and select "Open."
  5. Navigate to the following location: C:\Windows\System32\drivers\etc
  6. Select the "hosts" file and click on the "Open" button.
  7. Make the desired changes to the hosts file.
  8. Click on the "File" menu and select "Save."

Here are some additional tips for editing the hosts file:

  • Make sure to back up the hosts file before making any changes.
  • Be careful not to make any mistakes when editing the hosts file, as this could cause problems with your internet connection.
  • If you are not comfortable editing the hosts file yourself, you can use a third-party tool like Hosts Editor.

I hope this helps!

Comments

Popular posts from this blog

Why cromecast need internet access?

  Chromecast devices require internet access for several reasons: Content Streaming: Chromecast devices primarily function as streaming devices, enabling users to cast content from various streaming services like Netflix, Hulu, Disney+, YouTube, and many more. This content is hosted on the internet, and Chromecast needs an internet connection to access and stream it to your TV. Device Setup and Updates: During the initial setup process, Chromecast devices need to connect to the internet to download and install the necessary software and updates. This ensures that your device is running the latest version of the Chromecast software, providing optimal performance and security. Content Casting: Even when casting content from your local device, such as a smartphone or tablet, Chromecast still requires an internet connection. This is because the casting process involves communicating with the Chromecast device over the internet to initiate the casting session, ...

Lottie animation as a splash activity in Android 12+

Setting a Lottie animation as a splash activity in Android 12+ involves a few key steps, primarily leveraging the  SplashScreen  API introduced in Android 12 (API level 31). Here's a comprehensive guide: 1. Add Dependencies: Make sure your project uses Android Gradle Plugin 7.0.0 or higher and Gradle 7.0 or higher. Add the necessary dependencies to your module-level  build.gradle  file: dependencies { implementation 'androidx.core:core-splashscreen:1.0.1' // Or latest version implementation 'com.airbnb.android:lottie:latest_version' // Or latest version } 2. Create Your Lottie Animation: Design or obtain your Lottie animation file ( .json ). Place the animation file in your  res/raw  folder. If the  raw  folder doesn't exist, create it. 3. Implement the Splash Screen: In your  AndroidManifest.xml , set the theme of your splash activity to a theme that extends  Theme.SplashScreen : < resources > < style name = "The...