Sunday 15 September 2013

django - Pycharm: testing from anther computer in local network -


I'm using Pycharm and test on local dev servers. Unless I try to connect to a local dev server from any other laptop (windows), it gets all right.

My dev server is 127.0.0.1:8000 on a Mac. On the other computer, I can successfully ping the LAN IP of the server 10.0.2.2 . But enter 10.0.2.2:8000 in the browser address bar nothing adds.

Telnet 10.0.2.2 8000 also fails in the command line.

How can I do this?

Listen to 0.0.0.0 instead of 127.0.0.1, this means that all of these will listen, you Listen to specific IPs, but it will work on both local and network.

No comments:

Post a Comment