{"id":4872,"date":"2022-04-05T06:32:33","date_gmt":"2022-04-05T06:32:33","guid":{"rendered":"http:\/\/wpx.net\/kb\/?post_type=ht_kb&#038;p=4872"},"modified":"2025-07-18T11:01:37","modified_gmt":"2025-07-18T11:01:37","slug":"how-can-i-preview-my-website-without-pointing-it-to-wpx-macos","status":"publish","type":"ht_kb","link":"https:\/\/wpx.net\/kb\/how-can-i-preview-my-site-without-pointing-it-to-wpx-macos\/","title":{"rendered":"How can I preview\/develop my site without pointing it to WPX? &#8211; macOS"},"content":{"rendered":"\n<p>In this article we will show you how you can preview and even develop your website without pointing the domain to the new server. That happens with the help of a hosts file which is located on your Windows computer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Hosts File?<\/h2>\n\n\n\n<p>The <strong>Hosts File<\/strong> is a local file that maps domain&nbsp;names&nbsp;to IP addresses. The purpose of using that file is simple. The plan is to point your domain to a specific IP Address and &#8220;force&#8221; it to load from that location before actually making any DNS changes. In other words, it&#8217;s overriding your actual DNS zone. So, every time you visit a website, your computer will check the&nbsp;hosts&nbsp;file first to see which IP address it connects to and load it from there, instead of the IP address it is pointed to by DNS records. <br><br>In short, by editing the Hosts file, you\u2019ll be able to open your website locally.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use the Hosts File?<\/h2>\n\n\n\n<p>As you know, for your website to start loading from the new server after moving it to WPX, there will be a <strong><a href=\"https:\/\/wpx.net\/kb\/what-is-dns-propagation-and-why-it-can-take-up-to-48-hours\/\" target=\"_blank\" rel=\"noreferrer noopener\">DNS propagation<\/a><\/strong> time which can take up to 48 hours. During that time, your website will load for the public but it is not recommended to make changes to it because those changes may not be saved on the new server.<\/p>\n\n\n\n<p>That&#8217;s why editing the Hosts file is useful if you want to modify or just check your site after moving it to the new hosting and see how it\u2019ll look without pointing the domain.<br><br>Another example, of why you can use the Hosts File, is when you are developing your website and you need to see the new content you\u2019ve made without clearing all the cache (server, browser, and plugin) after you made a new change. (OR without changing the DNS records for the public).<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">You can use this guide for any version of Mac OS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-login-to-your-wpx-account\">Step 1. Log in to your WPX account<\/h2>\n\n\n\n<p>Begin by logging into your WPX account. You can do this by visiting the <strong><a href=\"https:\/\/wpx.net\/clientarea\/\" target=\"_blank\" rel=\"noreferrer noopener\">WPX login page<\/a>.\u200b<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-navigate-to-your-hosting-plan\">Step 2. Go to Control Panel<\/h2>\n\n\n\n<p>Once logged in:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Locate your hosting plan in the WPX client area.<\/li>\n\n\n\n<li>Click the <strong>Control Panel<\/strong> button next to the plan you wish to manage.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a038e549070e&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a038e549070e\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"796\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10.png\" alt=\"\" class=\"wp-image-12899\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10.png 1919w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-300x124.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-1024x425.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-768x319.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-50x21.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-1536x637.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-60x25.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-100x41.png 100w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If you have more than five hosting plans of the same type (WordPress, Agency or WooCommerce), not all may appear on the homepage. Use the <strong>WordPress Hosting<\/strong>, <strong>Agency Hosting<\/strong> or <strong>WooCommerce Hosting<\/strong> tab in the left-hand menu to find your service.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Copy the Server IP Address<\/h2>\n\n\n\n<p>Now that you have entered your WPX Control Panel, make sure to navigate to <strong>Plan details <\/strong>(1) and there you will see the <strong>IP Address <\/strong>(2) of the server which you need to copy, you will need it for later while editing the <strong>hosts<\/strong> file.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a038e54916da&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a038e54916da\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2836\" height=\"1253\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1.png\" alt=\"\" class=\"wp-image-11874\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1.png 2836w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-300x133.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-1024x452.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-768x339.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-50x22.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-1536x679.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-2048x905.png 2048w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-60x27.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/Plan-Details-1-100x44.png 100w\" sizes=\"auto, (max-width: 2836px) 100vw, 2836px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Open <strong>Terminal<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">You need to be with admin permission on your MAC device to complete the following steps. <\/p>\n\n\n\n<p>Use the <strong>Command \u2318<\/strong> +<strong> Space<\/strong> keyboard shortcut, once the Spotlight search field appears in the middle of your screen, please type <strong>Terminal<\/strong> and open it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 5. Open the hosts file<\/strong><\/h2>\n\n\n\n<p>To open the <strong>hosts<\/strong> file, enter the following command: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/private\/etc\/hosts<\/code><\/pre>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a038e5492667&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a038e5492667\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1136\" height=\"452\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile.png\" alt=\"\" class=\"wp-image-4861\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile.png 1136w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-300x119.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-1024x407.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-768x306.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-50x20.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-60x24.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOShostsfile-100x40.png 100w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Once you type in your MAC password, you will be directed to the <strong>hosts<\/strong> file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6. Add your domain to <strong>the hosts<\/strong> file<\/h2>\n\n\n\n<p>At the bottom of the file, insert your <strong>Server IP Address<\/strong>, followed by a space, then your non-www and www versions of your domain name. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">The Server IP Address can be seen in <strong>My Services<\/strong> \u2192 <strong>WordPress Hosting<\/strong> \u2192 <strong>Manage Service <\/strong>(next to the hosting plan you&#8217;re managing) \u2192<strong> Service details<\/strong> (under <strong>Server Details<\/strong>). <\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a038e5493471&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a038e5493471\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1137\" height=\"730\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile.png\" alt=\"\" class=\"wp-image-4862\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile.png 1137w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-300x193.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-1024x657.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-768x493.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-50x32.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-60x39.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/04\/macOSaddwebsitetohostsfile-100x64.png 100w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7. Save the changes<\/h2>\n\n\n\n<p>To save the changes,<strong> <\/strong>press<strong> CTRL + O<\/strong>. Then launch your browser and navigate to the domain you inserted into your <strong>hosts<\/strong> file.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">In some rare cases, your Mac might try to save the hosts file to &#8220;\/private\/etc\/hosts&#8221;, instead of &#8220;\/etc\/hosts&#8221;. The first path is incorrect and indicates that some permissions on the Mac device are not set properly or that the file is locked from editing. It would be best to check with Apple Support, who can help resolve that.<\/p>\n\n\n\n<p>If you get stuck with anything discussed on this page, please contact WPX Support via live chat (use the bottom right-hand widget) and they will respond and help within 30 seconds or less.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will show you how you can preview and even develop your website without pointing the domain to the new server. That happens with the help of a hosts file which is located on your Windows computer. What is a Hosts File? The Hosts File is a&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":3,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"ht-kb-category":[30],"ht-kb-tag":[],"class_list":["post-4872","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-website-help"],"_links":{"self":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/comments?post=4872"}],"version-history":[{"count":25,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4872\/revisions"}],"predecessor-version":[{"id":13664,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4872\/revisions\/13664"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/media?parent=4872"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4872"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}