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

ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 #2521

Closed
thanet-s opened this issue Sep 29, 2021 · 5 comments · Fixed by #2525
Closed

ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 #2521

thanet-s opened this issue Sep 29, 2021 · 5 comments · Fixed by #2525
Labels
bug Something isn't working
Milestone

Comments

@thanet-s
Copy link

thanet-s commented Sep 29, 2021

Describe the bug

ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176
and can not connect form outside docker
but no problem in 1.0.0-next.175 by change version in package.json and re install deps

Reproduction

Logs

No response

System Info

System:
    OS: macOS 11.5
    CPU: (8) arm64 Apple M1
    Memory: 217.02 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
    Yarn: 1.22.11 - ~/.nvm/versions/node/v16.10.0/bin/yarn
    npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
  Browsers:
    Chrome: 94.0.4606.61
    Firefox: 91.0.2
    Safari: 14.1.2
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.176 
    svelte: ^3.42.6 => 3.43.0

Severity

blocking an upgrade

Additional Information

No response

@whataboutpereira
Copy link
Contributor

Same here.

  vite v2.5.10 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  SvelteKit v1.0.0-next.176

  local:   http://localhost:3000
  network: http://192.168.1.185:3000
$ curl http://192.168.1.185:3000
curl: (7) Failed to connect to 192.168.1.185 port 3000: Connection refused

@thanet-s
Copy link
Author

edit package.json from

"dev": "svelte-kit dev --host"

to

"dev": "svelte-kit dev --host 0.0.0.0"

can temporary fix this problem

@Conduitry Conduitry added the bug Something isn't working label Sep 29, 2021
@Conduitry Conduitry added this to the 1.0 milestone Sep 29, 2021
@benmccann
Copy link
Member

Must be related to #2512

@Conduitry
Copy link
Member

Could it have been introduced in #2232? Should https://github.com/sveltejs/kit/pull/2232/files#diff-ed48923f0655f935bee505cdcbf40212129ff49a89c2c9d752bd63aa1e6282c4R148 have passed along '0.0.0.0' if the user specified --host without an explicit address?

@benmccann
Copy link
Member

That change was included in 1.0.0-next.169, but the issue report said it worked in 1.0.0-next.175 and broke in 1.0.0-next.176

@thanet-s thanet-s changed the title ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 Sep 29, 2021
@thanet-s thanet-s changed the title ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 ERR_CONNECTION_REFUSED can not connect by ip (--host) in 1.0.0-next.176 Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants