Re: Newbie question about accesing my development Django instance from other computers in my LAN

71 views
Skip to first unread message

Christopher Downard

unread,
Jul 27, 2012, 1:29:07 PM7/27/12
to django...@googlegroups.com

Try python manage.py runserver 192.168.1.116 where that address is your computer's address.

On Jul 27, 2012 7:15 AM, "Miguel Lavalle" <mig...@mlavalle.com> wrote:
Hi,

I am new to Django. I am developing my first app on a Windows 7 laptop. I want other people to be able to connect to this app. As indicated in the documentation, I start the server with:

python manage.py runserver 0.0.0.0:8000

And then I try to access my app from another laptop pointing the browser to:


Where 192.168.1.116 is the ip address of the laptop where my app resides

1) Am I using the correct URL?
2) Is there anything in Windows 7 that I have to change for other laptops to be able to access my app?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oGLm8GM7-e8J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Miguel Lavalle

unread,
Jul 27, 2012, 4:35:43 PM7/27/12
to django...@googlegroups.com
Thanks. It didn't work, though. In the development laptop I started the server with python manage.py runserver  192.168.1.116:8000 

In the laptop where I am trying to access the app, I typed in the browser:  192.168.1.116:8000/page/ where page is what I am trying to access

Regards

Miguel
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.

Christopher Downard

unread,
Jul 27, 2012, 4:58:56 PM7/27/12
to django...@googlegroups.com
Assuming both laptops are connected to the same local network (192.168.1.*) then it should be able to access the server.

Are you getting a page not found or are you getting an error with the URLs?

My server starts up just fine with python manage.py runserver 192.168.1.149:8020 (my lan's info).

If you're getting page not found I'd guess it's something related to your network (try ipconfig/all on both computers to make sure). If you're getting a urls error then you can post your URLs file to dpaste or the like. 

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/64QQ-6lO7fQJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--

Christopher Downard

Software Engineer

Blue Sun Technologies

E-Mail: ch...@bluesuntechnologies.com

Mobile: 720-434-9792

www.bluesuntechnologies.com


Bill Freeman

unread,
Jul 27, 2012, 5:02:30 PM7/27/12
to django...@googlegroups.com
The 0.0.0.0:8000 argument to runserver is the right way to do this.
(Apparently 0:8000 us a legal shortcut.)

But you may have a firewall on your machine which is not allowing
access to port 8000. You will have to find someone (maybe you) with
specific knowledge of firewall configuration on your particular OS to
help check for that.

Bill

On 7/27/12, Miguel Lavalle <mig...@mlavalle.com> wrote:
> Thanks. It didn't work, though. In the development laptop I started the
> server with python manage.py runserver
> 192.168.1.116:8000<http://192.168.1.116:8000/myapp/>
>
>
> In the laptop where I am trying to access the app, I typed in the browser:
>
> 192.168.1.116:8000 <http://192.168.1.116:8000/myapp/>/page/ where page is
>>> django-users...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/64QQ-6lO7fQJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.

Pratik Mandrekar

unread,
Jul 28, 2012, 6:23:18 PM7/28/12
to django...@googlegroups.com
Yes 0.0.0.0:8000 is correct. 

You would need to disable firewall for that port. In Ubuntu I used the Uncomplicated Firewall utility. You can try something like http://download.cnet.com/Windows-7-Firewall-Control/3000-10435_4-10618117.html for Windows 7
Reply all
Reply to author
Forward
0 new messages