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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 81k
  • Answers 81k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It sounds like you want my EndianBitConverter in MiscUtil, which… May 11, 2026 at 4:29 pm
  • Editorial Team
    Editorial Team added an answer Like a lot of these tree problems, the magic word… May 11, 2026 at 4:29 pm
  • Editorial Team
    Editorial Team added an answer Create a custom User Type and which truncates the string… May 11, 2026 at 4:29 pm

Related Questions

This is only marginally a programming problem and more of a networking problem. I'm
This is a fairly trivial matter, but I'm curious to hear people's opinions on
I'd like to call a .net webservice from another domain using only jquery. What
In this thread some one commented that the following code should only be used
My company is in the process of rewriting our software from scratch, and I'm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.