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

Port 80 #3

Open
kwamayze opened this issue Sep 28, 2017 · 8 comments
Open

Port 80 #3

kwamayze opened this issue Sep 28, 2017 · 8 comments

Comments

@kwamayze
Copy link

ERROR: listen EACCESS 0.0.0.0:80

@greggman
Copy link
Owner

I assume you're on Linux or macOS.

In that case you'd need to run as root to access port 80.

@kwamayze
Copy link
Author

kwamayze commented Sep 28, 2017 via email

@patrickhlauke
Copy link

Randomly: this issue can probably be closed?

@greggman
Copy link
Owner

I left it open incase I want to try to add an option to make it work without sudo.

@test2a
Copy link

test2a commented Oct 27, 2020

sudo ./Servez-1.7.0.AppImage -p:80

[763950:1027/104513.374112:FATAL:electron_main_delegate.cc(211)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap

sudo ./Servez-1.7.0.AppImage -p:80 --no-sandbox

Error: Invalid option '--sandbox' - perhaps you meant '--index'?
at getOption (/tmp/.mount_Servezi7Jybj/resources/app.asar/node_modules/optionator/lib/index.js:169:15)
at Object.parse (/tmp/.mount_Servezi7Jybj/resources/app.asar/node_modules/optionator/lib/index.js:396:23)
at Object. (/tmp/.mount_Servezi7Jybj/resources/app.asar/main.js:27:21)
at Module._compile (internal/modules/cjs/loader.js:968:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
at Module.load (internal/modules/cjs/loader.js:816:32)
at Module._load (internal/modules/cjs/loader.js:728:14)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Object. (electron/js2c/browser_init.js:5805:12)
Usage: servez [options] path-to-serve

-h, --help     : displays help
-p, --port=Int : port - default: 8080
--no-dirs      : show directory listing
--no-cors      : send CORS headers
--ssl          : use HTTPS - default: false
--local        : local machine only - default: false
--no-index     : serve index.html for directories

@test2a
Copy link

test2a commented Oct 27, 2020

i want to run server at port 80 but i am not being able to.

@greggman
Copy link
Owner

greggman commented Oct 27, 2020

If you want an instant solution use the command line version of servez
I can try to make the app version work but don't know when I'll be able to get around to it.

It's also possible this might work

sudo ./Servez-1.7.0.AppImage --no-sandbox -- -p:80 

but I didn't try it

@test2a
Copy link

test2a commented Oct 27, 2020

Screenshot_20201027_143117
ok. it worked but kinda. the default folder is changed to port which would not work and port in the box defaulted to 8080. changing the path and port to 80 worked. Maybe you can improve on this? thanks for the quick response anyways, this should be enough for my work.

edit:
btw, i used this

sudo ./Servez-1.7.0.AppImage --no-sandbox -- -p:80

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

4 participants