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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development server not reachable from other computer in local network #6969

Closed
DavisOwen opened this issue Sep 21, 2021 · 5 comments
Closed
Labels
Stale Inactive issues

Comments

@DavisOwen
Copy link

馃悰 bug report

https://stackoverflow.com/questions/69262908/cant-access-parcel-js-development-server-on-another-machine

馃 Expected Behavior

I should be able to reach the development server from my other machine at :1234

馃槸 Current Behavior

I am not receiving any connection from the other computer in network despite listening on port 1234 and being able to successfully ping the computer.

馃拋 Possible Solution

馃敠 Context

馃捇 Code Sample

馃實 Your Environment

Software Version(s)
Parcel
Node
npm/Yarn
Operating System
@mischnic
Copy link
Member

This is by design (not exposing it by default). You can pass --host to listen on other addresses (for example --host 0.0.0.0 for everything, including localhost and your local IP)

@DavisOwen
Copy link
Author

@mischnic Sorry I put more context in the stack overflow link I posted, as I'm asking the question there as well since it could be a networking issue (although im fairly certain it is an issue unique to parcel for reasons listed in the question).

But basically I tried using --host 0.0.0.0 as well and it did not change anything, as well as trying many different ports (some that I know work). I even verified that the node server is listening on port 1234 as expected yet I am still not receiving any connections and the connection is timing out

@devongovett
Copy link
Member

I think by default it should be accessible. I regularly access parcel dev servers from other machines. Are you sure it's not a firewall or router setting?

@DavisOwen
Copy link
Author

EDIT: I forgot that I am using the deprecated version of parcel, parcel-bundler 1.12.5. This is unavoidable for me and my project since I could not get the recent 2.0 versions of parcel to work because of this issue I was having with my Mac

#5046

which I could not resolve.

So, to be fair this could be an issue that the old deprecated version of parcel-bundler doesnt handle. However I still feel like this should be working...

@devongovett I'm fairly sure because I've tried on 2 different routers now and I can ping the ip just fine. I also have run a django app on the same port and can access that fine as well so it seems unique to parcel

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Inactive issues
Projects
None yet
Development

No branches or pull requests

3 participants