# Open site with localhost

**URL:** <https://community.localwp.com/t/open-site-with-localhost/27919>\
**Category:** Support\
**Tags:** hosts-file, general-use, router-mode\
**Created:** [September 28, 2021, 2:03pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919 "2021-09-28T14:03:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatma](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fatma](https://community.localwp.com/u/fatma)\
**Post date:** [September 28, 2021, 2:03pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919/1 "2021-09-28T14:03:38Z")

</div>

I used to open the site with sitename.local  
I need to open it with the IP address of local device somthing like that  
[http://localhost/sitename](http://localhost/sitename) or [http://192.168.1.10/amanleek](http://192.168.1.10/amanleek)  
I can’t find what is the equivalent to that url sitename.local

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 28, 2021, 3:49pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919/2 "2021-09-28T15:49:10Z")

</div>

Hey @fatma – Welcome to the Local Community Forums!

Local has a feature called “Router Mode” which allows you to choose between using `localhost` or a human readable site-domain (something like `example.local`) to access the WordPress site. You can change this setting by navigating to the “Preferences \> Advanced \> Router Mode” page.

For more info, see this help doc:

- [https://localwp.com/help-docs/advanced/router-mode/](https://localwp.com/help-docs/advanced/router-mode/)

---

<div class="post-metadata">

**Author:** ![fatma](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fatma](https://community.localwp.com/u/fatma)\
**Post date:** [September 28, 2021, 5:14pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919/3 "2021-09-28T17:14:56Z")

</div>

thanks for your reply  
I am new on wordpress can you tell me how to find this path on the site “Preferences \> Advanced \> Router Mode”

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 28, 2021, 5:22pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919/4 "2021-09-28T17:22:27Z")

</div>

No problem! Router Mode isn’t a WordPress feature, it’s something that’s provided by Local, so you access it from Local’s preferences. Here’s how to get there from within MacOS, but the process is similar for other operating systems:

 ![Image 2021-09-28 at 10.20.56 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/6b14d1ad1282e86d1d662bcac33926116ed03617.jpeg)

---

<div class="post-metadata">

**Author:** ![fatma](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fatma](https://community.localwp.com/u/fatma)\
**Post date:** [September 28, 2021, 5:22pm UTC](https://community.localwp.com/t/open-site-with-localhost/27919/5 "2021-09-28T17:22:49Z")

</div>

Thanks for your reply that solved my problem

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [September 30, 2021, 5:22am UTC](https://community.localwp.com/t/open-site-with-localhost/27919/6 "2021-09-30T05:22:50Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
