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 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.
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!
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:
go to ~/DevKinsta/nginx_sites and edit the .conf file that corresponds with the site you want to view.
scroll down to the server_name and add on your host computer’s network IP
After saving that file open Docker Desktop and restart the devkinsta_nginx container: