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

Do not use port 80 to flash firmware! #124

Open
igoro00 opened this issue Aug 27, 2022 · 0 comments
Open

Do not use port 80 to flash firmware! #124

igoro00 opened this issue Aug 27, 2022 · 0 comments

Comments

@igoro00
Copy link

igoro00 commented Aug 27, 2022

The program opens a server on a port to transfer firmware to the chip.
It tries to open it on port 80 but on Linux(unix-like systems in general) you have to have root to open ports 1-1024 and if you don't(or you're running the tool through Wine like me) it silently crashes. Please, remove port 80 from the list of ports to try and use port 1080 and up

A workaround

If the program detects that port 80 is already opened by another app, it will try to open it's server on port 1080(that's what we want). It doesn't if it's available but you don't have permissions...
So we need to open port 80 ourselfs.
That's what I did:

sudo npm install -g http-server #make sure you have nodejs installed
sudo http-server -p 80

then flash the firmware.
After flashing, stop the server by hitting ctrl+c in terminal.

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

1 participant