Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host setting not respected #559

Closed
CGamesPlay opened this issue May 15, 2023 · 2 comments
Closed

Host setting not respected #559

CGamesPlay opened this issue May 15, 2023 · 2 comments

Comments

@CGamesPlay
Copy link

  • aiohttp-devtools version: 1.0.post0
  • aiohttp version: 3.8.4
  • python version: 3.9.6
  • Platform: macOS

Issue Summary

The documented host setting is not respected, and instead the app always binds to IPv4 0.0.0.0 only.

Steps to reproduce

  1. Create test.py with the example server from https://docs.aiohttp.org/en/stable/web_quickstart.html#run-a-simple-web-server
  2. Run adev runserver test.py -p 4000 --host "192.168.2.6" or with whatever appropriate IP you like.
  3. In another terminal, run netstat -ant | grep 4000

Adev sends us mixed messages about the setting working:

$ adev runserver test.py -p 4000 --host "192.168.2.6"
[08:27:11] Starting aux server at http://192.168.2.6:4001 ◆
[08:27:11] Starting dev server at http://192.168.2.6:4000 ●
======== Running on http://0.0.0.0:4001 ========
(Press CTRL+C to quit)

But the truth is that it only listened on IPv4 0.0.0.0:

$ netstat -ant | grep 4000
tcp4       0      0  *.4000                 *.*                    LISTEN
@Dreamsorcerer
Copy link
Member

Please check for duplicates first, there are literally only 4 open issues...
#449

@CGamesPlay
Copy link
Author

Sorry about that! Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants