[GH-ISSUE #2] Make the server listen to outside of localhost #3

Closed
opened 2026-02-25 23:40:43 +03:00 by kerem · 3 comments
Owner

Originally created by @tdram on GitHub (Sep 11, 2015).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/2

Hey,

Recently came to know your tool. A very sincere work from your side. Congrats!

I'm trying to set it up in my system (centos 6.5 64 bit). I have started the development server:

System check identified no issues (0 silenced).
September 11, 2015 - 16:24:15
Django version 1.8.2, using settings 'hc.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

How to make it listen to server's public IP address instead of localhost?

Thank you.

Originally created by @tdram on GitHub (Sep 11, 2015). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/2 Hey, Recently came to know your tool. A very sincere work from your side. Congrats! I'm trying to set it up in my system (centos 6.5 64 bit). I have started the development server: System check identified no issues (0 silenced). September 11, 2015 - 16:24:15 Django version 1.8.2, using settings 'hc.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. How to make it listen to server's public IP address instead of localhost? Thank you.
kerem closed this issue 2026-02-25 23:40:43 +03:00
Author
Owner

@cuu508 commented on GitHub (Sep 11, 2015):

Hi raamee,

You can look up startup options for Django development server like this:

$ ./manage.py runserver --help

The parameter you're looking for is [addrport]. Start it like this:

$ ./manage.py runserver 192.168.1.123:8000
Performing system checks...

System check identified no issues (0 silenced).
September 11, 2015 - 16:33:01
Django version 1.8.2, using settings 'hc.settings'
Starting development server at http://192.168.1.123:8000/
Quit the server with CONTROL-C.

Note that development server should indeed only be used for development/testing. For production, you would ideally run it using gunicorn or uwsgi, and serve static files with something like nginx.
On deployment side, I don't think there any specific gotchas, you can follow guides for deploying any regular Django app.
Please let me know how you get on!

<!-- gh-comment-id:139594223 --> @cuu508 commented on GitHub (Sep 11, 2015): Hi raamee, You can look up startup options for Django development server like this: ``` $ ./manage.py runserver --help ``` The parameter you're looking for is [addrport]. Start it like this: ``` $ ./manage.py runserver 192.168.1.123:8000 Performing system checks... System check identified no issues (0 silenced). September 11, 2015 - 16:33:01 Django version 1.8.2, using settings 'hc.settings' Starting development server at http://192.168.1.123:8000/ Quit the server with CONTROL-C. ``` Note that development server should indeed only be used for development/testing. For production, you would ideally run it using gunicorn or uwsgi, and serve static files with something like nginx. On deployment side, I don't think there any specific gotchas, you can follow guides for deploying any regular Django app. Please let me know how you get on!
Author
Owner

@tdram commented on GitHub (Sep 12, 2015):

Hi,

Great! Thank you for the reply. I got it working! I'm new to Django apps, so I'm kinda slow in setting up. I'm gonna start setting checks. Will let you know if I face any challenges.

<!-- gh-comment-id:139796526 --> @tdram commented on GitHub (Sep 12, 2015): Hi, Great! Thank you for the reply. I got it working! I'm new to Django apps, so I'm kinda slow in setting up. I'm gonna start setting checks. Will let you know if I face any challenges.
Author
Owner

@yad2nus commented on GitHub (Mar 11, 2020):

so good

<!-- gh-comment-id:597647017 --> @yad2nus commented on GitHub (Mar 11, 2020): so good
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#3
No description provided.