Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 177155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:00:15+00:00 2026-05-11T14:00:15+00:00

This is only marginally a programming problem and more of a networking problem. I’m

  • 0

This is only marginally a programming problem and more of a networking problem.

I’m trying to get a Django web app to run in my home network and I can’t get any machines on the network to get to the web page. I’ve run on ports 80 and 8000 with no luck. Error message is: ‘Firefox can’t establish a connection to the server at 192.168.x.x.’

I’ve tried using sockets in python from the client:

import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect ( ('192.168.x.x', 80) ) 

I just get ‘socket.error (10061, ‘Connection refused’)’. Interestingly, I can connect with port 25.

There is no Windows firewall running. There is a NetGear router/firewall in front of the cable modem.

What should I be looking at to configure this?


Also tried:

import urllib2 urllib2.urlopen('http://192.168.x.x/') 

Same thing.


Re: ‘Can you see the Django app from the machine it’s running on?’

Yes. It does work on the same machine. It does not work across the network.

I can also set the server to run on whatever port I choose (80, 8000, etc.) and it is accessible locally, not across the network.


Q. Is it netstat-able? A. Yes:

  Proto  Local Address          Foreign Address        State   ....   TCP    D3FL2J71:http          localhost:1140         TIME_WAIT   TCP    D3FL2J71:http          localhost:1147         TIME_WAIT 

I have the website visible in two browser windows locally.


Use explicit external port (not rely on localhost):

python manage.py runserver 192.168.x.x:8000 

Bing bing bing! We have a winner!

Wow, am I ever glad this is not a networking problem.


‘is the Django app definitely advertising itself on the 192.168.x.x address and not just on the loopback adapter?’

It seems Jon was on the right track, too, but the comment did not point me in the direction to look — check the Django server’s setup call.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:00:15+00:00Added an answer on May 11, 2026 at 2:00 pm

    I assume you’re running the django dev server? If so, make sure you start it so that it will bind to the IP address the other machines need to use for the connection:

    python manage.py runserver 192.168.x.x:8000 

    You can ask the server to bind to all addresses with (haven’t tried this on Windows myself, I admit):

    python manage.py runserver 0.0.0.0:8000 

    Normal runserver usage binds only to localhost, I’m afraid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is only marginally programming related - has much more to do w/ colors
This only happens in some IE's. Here: http://animactions.ca/Animactions/volet_entreprise.php You may notice that when you
This only happens in IE. I'm using swfobject and loading the flash vars as
why does this only alert 1 ? function test() { var myobj = {
My url generates like this: only shows in ie9 http://myurl.com/#/categories/posts how do I remove
For some reason this only returns the name of the first item in the
I am not sure whether this only happens to me. Basically if I have
The recommended solution is this: config.active_record.whitelist_attributes = true But this only works if you
SELECT MAX(some_field) FROM table_A GROUP BY another_field This only gets the max value of
In IE8 this input.attr(name,exam.exam_Normal[' +normal_id_unique + '].boolean_v); Outputs this only in IE8.... <input propdescname=exam.exam_Normal['1'].boolean_v

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.