Web Development - How to access custom host, defined in my hosts file, from another device in the same network

Posted by Neara on Server Fault See other posts from Server Fault or by Neara
Published on 2013-06-27T08:34:56Z Indexed on 2013/06/27 10:23 UTC
Read the original article Hit count: 226

Ok, I hope i'll be able to explain the issue im experiencing.

I'm working on a project, that has 2 parts: one takes all requests from usual localhost, the other handles requests from myhost.local.

While trying to access both addresses from my computer, it works ok. But now i need to test myhost.local on mobile devices, connected to the same network.

Usually i would just run server from my computer ip in the network:

python manage.py runserver 10.0.0.8:8000

And then from any device, going to 10.0.0.8:8000 would show the project im working on. However, now accessing that ip address routes me straight to localhost.

So, my question is how to access myhost.local from another device in same network?

I don't want to change router settings, if that can be avoided, cos sometimes i work from places where i can't access router admin. Is there any network settings on my computer, that i can change to fix the routing to myhost.local w.o losing access to localhost as well?

© Server Fault or respective owner

Related posts about networking

Related posts about macosx