freon4dsl / Freon4dsl

Web Native language Workbench with Projectional Web Editor
https://www.freon4dsl.dev
MIT License
67 stars 8 forks source link

Server does not respond on Macbook #325

Closed globallyunique closed 4 months ago

globallyunique commented 5 months ago

If on a macbook the server does not respond it may be due to a port conflict with the default port of 5000. If this is the error:

Failed to load resource: the server responded with a status of 403 () chrome-error://chromewebdata/:1

This seems happen because of a conflict with /System/Library/CoreServices/ControlCenter.app/Contents/MacOS/ControlCenter which runs on port 5000.

Switching the port by updating "start" command in package.json for the webapp in the playground to something like the following fixes the issue.

"start": "sirv public --port 8001"

Is there another reason this could be happening or a better way to fix it?

dslmeinte commented 5 months ago

I think port numbers in the 8000- are more familiar to devs, so I'd be in favor of using that range as well.

joswarmer commented 5 months ago

This is the right way to do this. @dslmeinte didn't realise that we could better use the 8000 range.

joswarmer commented 4 months ago

IS this resolved now?

globallyunique commented 4 months ago

Resolved by changing the port on the dev command. Perhaps it should be changed in the distribution and/or documentation so others don't have the issue.

joswarmer commented 4 months ago

Solved by changing default ports.