{"id":652,"date":"2021-07-26T12:18:08","date_gmt":"2021-07-26T12:18:08","guid":{"rendered":"https:\/\/www.34sp.com/kb\/?p=652"},"modified":"2026-01-28T11:43:30","modified_gmt":"2026-01-28T11:43:30","slug":"how-to-edit-your-host-file-on-windows","status":"publish","type":"post","link":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows","title":{"rendered":"How to edit your host file on Windows"},"content":{"rendered":"\n<div class=\"wp-block-columns has-background is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\" style=\"background-color:#f6faff\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Applies to:<\/strong><br>Domains<br>Professional Hosting<br>Universal Hosting<br>Reseller Hosting<br>VPS Hosting<br>WordPress Hosting<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Difficulty:<\/strong><br>Easy<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-black-color has-text-color wp-block-paragraph\"><strong>Time Needed:<\/strong><br>5 minutes<\/p>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to edit host file on Windows\" width=\"952\" height=\"536\" src=\"https:\/\/www.youtube.com\/embed\/w3g6d2hxOXc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is a quick step-by-step guide to editing your host file on Windows. Editing your host file is a great way of viewing a specific web server prior to updating your DNS, or whilst it is propagating.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are a Mac user, please see our Knowledge Base article\u00a0&#8216;How to edit your host file on macOS&#8217;.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to edit a host file on Windows<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 1<br>Click on the &#8216;Start&#8217; button<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">When running Windows, click on the start button (or the Windows icon), usually located at the bottom left of the screen.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg\" alt=\"\" class=\"wp-image-653\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 2<\/h5>\n\n\n\n<h4 class=\"wp-block-heading\">Choose &#8216;All Apps&#8217;<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">On the start menu, choose&nbsp;<strong>&#8216;All Apps&#8217;<\/strong>&nbsp;from the list of options. Then click on the option labelled&nbsp;<strong>&#8216;Windows Accessories&#8217;<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-02.1-1.jpg\" alt=\"\" class=\"wp-image-654\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-02.1-1.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-02.1-1-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 3<br>Select &#8216;Notepad&#8217;<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">After you have clicked on&nbsp;<strong>&#8216;Windows Accessories&#8217;<\/strong>, you will be presented with a list of applications. Locate&nbsp;<strong>&#8216;Notepad&#8217;<\/strong>&nbsp;from the list of icons, and&nbsp;<strong>right click on it<\/strong>. Then choose&nbsp;<strong>&#8216;Run as administrator&#8217;<\/strong>&nbsp;from the context menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At this point a dialog box may open, asking you&nbsp;<strong>&#8216;Do you want to allow the following program to make changes to this computer&#8217;<\/strong>. Simply click&nbsp;<strong>&#8216;Yes&#8217;<\/strong>&nbsp;to proceed.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-01.1.jpg\" alt=\"\" class=\"wp-image-655\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-01.1.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-01.1-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 4<br>Open the host file<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">In Notepad, click&nbsp;<strong>&#8216;File&#8217;<\/strong>, then&nbsp;<strong>&#8216;Open&#8217;<\/strong>.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-02.1.jpg\" alt=\"\" class=\"wp-image-656\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-02.1.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-02.1-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 5<br>Locate your host file<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">From the window that opens, click on&nbsp;<strong>&#8216;Text Documents (*.txt)&#8217;<\/strong>&nbsp;and choose&nbsp;<strong>&#8216;All files&#8217;<\/strong>. Then locate and open the following file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>c:\\Windows\\System32\\Drivers\\etc\\hosts<\/code><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-03.1.jpg\" alt=\"\" class=\"wp-image-657\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-03.1.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-hostfile-windows-03.1-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h5 class=\"wp-block-heading\">STEP 6<br>Edit the host file<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">This will open your host file. To add a new server or domain, move the cursor to the bottom of the file, then enter the&nbsp;<strong>IP address<\/strong>&nbsp;of your server, press the&nbsp;<strong>&#8216;Tab&#8217;<\/strong>&nbsp;key, then enter your&nbsp;<strong>domain name<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following is an example, you will need to update these to your relevant IP address and URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>127.0.0.1 yourdomain.com<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you have entered the relevant IP address and url, click&nbsp;<strong>&#8216;File&#8217;<\/strong>, then&nbsp;<strong>&#8216;Save&#8217;<\/strong>&nbsp;to save your changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then open your web browser and enter the domain you added to your host file. If the site changes from the one of the public can see, to the one on your new server, then you have edited the host file successfully.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"270\" src=\"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-2.jpg\" alt=\"\" class=\"wp-image-658\" srcset=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-2.jpg 450w, https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-2-300x180.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Applies to:DomainsProfessional HostingUniversal HostingReseller HostingVPS HostingWordPress Hosting Difficulty:Easy Time Needed:5 minutes Introduction This is a quick step-by-step guide to editing your host file on Windows. Editing your host file is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,95,3,30,2],"tags":[],"class_list":["post-652","post","type-post","status-publish","format-standard","hentry","category-domain-names","category-general","category-professional-hosting","category-universal-hosting","category-wordpress-hosting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to edit your host file on Windows | Knowledge Base<\/title>\n<meta name=\"description\" content=\"This is a quick step-by-step guide to editing your host file on Windows.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to edit your host file on Windows | Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"This is a quick step-by-step guide to editing your host file on Windows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/34SPWebsiteHosts\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/34SPWebsiteHosts\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-26T12:18:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-28T11:43:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"450\" \/>\n\t<meta property=\"og:image:height\" content=\"270\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kayleigh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@34sp\" \/>\n<meta name=\"twitter:site\" content=\"@34sp\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kayleigh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows\"},\"author\":{\"name\":\"Kayleigh\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#\\\/schema\\\/person\\\/daa527106d35aab27ee3d39e12112172\"},\"headline\":\"How to edit your host file on Windows\",\"datePublished\":\"2021-07-26T12:18:08+00:00\",\"dateModified\":\"2026-01-28T11:43:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows\"},\"wordCount\":398,\"publisher\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.34sp.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/generic-traceroute-windows-01.1-1.jpg\",\"articleSection\":[\"Domain Names\",\"General\",\"Professional Hosting\",\"Universal Hosting\",\"WordPress Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows\",\"url\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows\",\"name\":\"How to edit your host file on Windows | Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.34sp.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/generic-traceroute-windows-01.1-1.jpg\",\"datePublished\":\"2021-07-26T12:18:08+00:00\",\"dateModified\":\"2026-01-28T11:43:30+00:00\",\"description\":\"This is a quick step-by-step guide to editing your host file on Windows.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#primaryimage\",\"url\":\"https:\\\/\\\/www.34sp.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/generic-traceroute-windows-01.1-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.34sp.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/generic-traceroute-windows-01.1-1.jpg\",\"width\":450,\"height\":270},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/how-to-edit-your-host-file-on-windows#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kb.34sp.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to edit your host file on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#website\",\"url\":\"https:\\\/\\\/kb.34sp.com\\\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kb.34sp.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#organization\",\"name\":\"34SP.com Limited\",\"url\":\"https:\\\/\\\/kb.34sp.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/kb.34sp.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/34sp-logo-horizontal-blue.png\",\"contentUrl\":\"https:\\\/\\\/kb.34sp.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/34sp-logo-horizontal-blue.png\",\"width\":3000,\"height\":1286,\"caption\":\"34SP.com Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/34SPWebsiteHosts\\\/\",\"https:\\\/\\\/x.com\\\/34sp\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kb.34sp.com\\\/#\\\/schema\\\/person\\\/daa527106d35aab27ee3d39e12112172\",\"name\":\"Kayleigh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g\",\"caption\":\"Kayleigh\"},\"description\":\"As part of the Customer Experience team, Kayleigh ensures that all of our customers get the highest quality of service. Kayleigh started with 34SP in 2014 and is one of our WordPress experts. Kayleigh provides all of our support staff with ongoing training and works to improve their knowledge across a broad range of subjects.\",\"sameAs\":[\"https:\\\/\\\/www.34SP.com\",\"https:\\\/\\\/www.facebook.com\\\/34SPWebsiteHosts\",\"https:\\\/\\\/www.instagram.com\\\/34sp\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/34sp.com\",\"https:\\\/\\\/www.pinterest.co.uk\\\/34SP\",\"https:\\\/\\\/x.com\\\/34sp\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/34SPcomLtd\"],\"url\":\"https:\\\/\\\/kb.34sp.com\\\/author\\\/wp7ctmdod3qm\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to edit your host file on Windows | Knowledge Base","description":"This is a quick step-by-step guide to editing your host file on Windows.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows","og_locale":"en_US","og_type":"article","og_title":"How to edit your host file on Windows | Knowledge Base","og_description":"This is a quick step-by-step guide to editing your host file on Windows.","og_url":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows","article_publisher":"https:\/\/www.facebook.com\/34SPWebsiteHosts\/","article_author":"https:\/\/www.facebook.com\/34SPWebsiteHosts","article_published_time":"2021-07-26T12:18:08+00:00","article_modified_time":"2026-01-28T11:43:30+00:00","og_image":[{"width":450,"height":270,"url":"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg","type":"image\/jpeg"}],"author":"Kayleigh","twitter_card":"summary_large_image","twitter_creator":"@34sp","twitter_site":"@34sp","twitter_misc":{"Written by":"Kayleigh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#article","isPartOf":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows"},"author":{"name":"Kayleigh","@id":"https:\/\/www.34sp.com/kb\/#\/schema\/person\/daa527106d35aab27ee3d39e12112172"},"headline":"How to edit your host file on Windows","datePublished":"2021-07-26T12:18:08+00:00","dateModified":"2026-01-28T11:43:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows"},"wordCount":398,"publisher":{"@id":"https:\/\/www.34sp.com/kb\/#organization"},"image":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#primaryimage"},"thumbnailUrl":"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg","articleSection":["Domain Names","General","Professional Hosting","Universal Hosting","WordPress Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows","url":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows","name":"How to edit your host file on Windows | Knowledge Base","isPartOf":{"@id":"https:\/\/www.34sp.com/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#primaryimage"},"image":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#primaryimage"},"thumbnailUrl":"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg","datePublished":"2021-07-26T12:18:08+00:00","dateModified":"2026-01-28T11:43:30+00:00","description":"This is a quick step-by-step guide to editing your host file on Windows.","breadcrumb":{"@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#primaryimage","url":"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg","contentUrl":"https:\/\/www.34sp.com\/kb\/wp-content\/uploads\/2021\/07\/generic-traceroute-windows-01.1-1.jpg","width":450,"height":270},{"@type":"BreadcrumbList","@id":"https:\/\/www.34sp.com/kb\/how-to-edit-your-host-file-on-windows#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.34sp.com/kb\/"},{"@type":"ListItem","position":2,"name":"How to edit your host file on Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.34sp.com/kb\/#website","url":"https:\/\/www.34sp.com/kb\/","name":"","description":"","publisher":{"@id":"https:\/\/www.34sp.com/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.34sp.com/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.34sp.com/kb\/#organization","name":"34SP.com Limited","url":"https:\/\/www.34sp.com/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.34sp.com/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2022\/06\/34sp-logo-horizontal-blue.png","contentUrl":"https:\/\/www.34sp.com/kb\/wp-content\/uploads\/2022\/06\/34sp-logo-horizontal-blue.png","width":3000,"height":1286,"caption":"34SP.com Limited"},"image":{"@id":"https:\/\/www.34sp.com/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/34SPWebsiteHosts\/","https:\/\/x.com\/34sp"]},{"@type":"Person","@id":"https:\/\/www.34sp.com/kb\/#\/schema\/person\/daa527106d35aab27ee3d39e12112172","name":"Kayleigh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cee8c3564bca088c8f3300447726634e7e34d11b2002b3de29996ba4da754343?s=96&d=mm&r=g","caption":"Kayleigh"},"description":"As part of the Customer Experience team, Kayleigh ensures that all of our customers get the highest quality of service. Kayleigh started with 34SP in 2014 and is one of our WordPress experts. Kayleigh provides all of our support staff with ongoing training and works to improve their knowledge across a broad range of subjects.","sameAs":["https:\/\/www.34SP.com","https:\/\/www.facebook.com\/34SPWebsiteHosts","https:\/\/www.instagram.com\/34sp\/","https:\/\/www.linkedin.com\/company\/34sp.com","https:\/\/www.pinterest.co.uk\/34SP","https:\/\/x.com\/34sp","https:\/\/www.youtube.com\/c\/34SPcomLtd"],"url":"https:\/\/www.34sp.com/kb\/author\/wp7ctmdod3qm"}]}},"_links":{"self":[{"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":1,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/posts\/652\/revisions\/659"}],"wp:attachment":[{"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.34sp.com/kb\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}