# Viewing site on another device

**URL:** https://community.kinsta.com/t/viewing-site-on-another-device/1698
**Category:** Application Support
**Created:** [August 30, 2022, 12:47am UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698 "2022-08-30T00:47:24Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![davejay](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@davejay](https://community.kinsta.com/u/davejay)
#### Post date: [August 30, 2022, 12:47am UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/1 "2022-08-30T00:47:24Z")

</div>

Hi all,

I’d like to view a site an a second device on my network. I’ve followed the directions here: [How to Browse a DevKinsta Site from Another Network Device](https://kinsta.com/knowledgebase/devkinsta/browse-devkinsta-site-from-another-device/)

When I enter the host machine’s IP address in browser on the 2nd device, I get a 404 error from nginx. Both devices are on the same network, same router, same subnet. Any ideas? Has anyone got this working? My host machine is a Mac, FWIW.

Thanks.

 ![IMG_FA7FCA5B2799-1](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/c/cc3f9e405b0bbd8ddd9bea1ffb5fc95eac8d337f.jpeg)

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [August 30, 2022, 10:34pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/2 "2022-08-30T22:34:16Z")

</div>

Hi @davejay, welcome to DevKinsta!  
It looks like the recent update changed this process a bit so thank you for pointing this out!

For now can you try this fix:

Please open the hosts file of your non-DevKinsta device and add an entry for your site. That will just look something like this:

`123.456.7.8 mysite.local`

Replace 123.456.7.8 with the network address of your Devkinsta host device.

If that allows you to connect to your site with its hostname, you won’t have to change your wp-config.php .

Please let me know how that works for you and I’ll work with our team to update those instructions.

---

<div class="post-metadata">

### Author: ![davejay](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@davejay](https://community.kinsta.com/u/davejay)
#### Post date: [August 30, 2022, 11:25pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/3 "2022-08-30T23:25:21Z")

</div>

Thanks for the reply, Kevin. Alas, I was hoping to test my DevKinsta site on an iphone. AFAIK, it’s not possible to edit the hosts file in iOS without jailbreaking the device. If you guys have a workaround for that, maybe you could include that in the instructions update.

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [August 31, 2022, 4:12am UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/4 "2022-08-31T04:12:34Z")

</div>

Ah okay no worries @davejay  
I forgot about that issue with mobile. I’ll do some research on how to get this working for you. There’s definitely a way to change the NGINX configuration to allow IP routing again. I’ll get back to you tomorrow!

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [August 31, 2022, 4:51pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/5 "2022-08-31T16:51:04Z")

</div>

Hi @davejay, I found a quick way around this. Note this process will change once we finalize some upcoming features but this allowed me to load my Desktop site from mobile using the IP:

1. go to `~/DevKinsta/nginx_sites` and edit the `.conf` file that corresponds with the site you want to view.
2. scroll down to the `server_name` and add on your host computer’s network IP  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/60b6ac3479070d4e7c4bd35a8aef5992949d66f7.png)
3. After saving that file open Docker Desktop and restart the devkinsta\_nginx container:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/035a627942894bd4a1cf6caeefd0dd1951c1802b.png)

If done correctly you should no longer get a 404 and visiting the IP from your phone. Please let me know if this doesn’t work for you!

---

<div class="post-metadata">

### Author: ![Johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@Johannes](https://community.kinsta.com/u/Johannes)
#### Post date: [September 6, 2022, 4:12pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/6 "2022-09-06T16:12:29Z")

</div>

Hi Kevin, thanks for your support, I tried the steps above and still get the 404 on my iPhone.  
Is there another workaround?  
Thanks so much in advance!

---

<div class="post-metadata">

### Author: ![Johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@Johannes](https://community.kinsta.com/u/Johannes)
#### Post date: [September 6, 2022, 4:28pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/7 "2022-09-06T16:28:42Z")

</div>

Well, cleared cache and it works fine!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [September 9, 2022, 4:28pm UTC](https://community.kinsta.com/t/viewing-site-on-another-device/1698/8 "2022-09-09T16:28:57Z")

</div>

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