servez icon indicating copy to clipboard operation
servez copied to clipboard

Port 80

Open kwamayze opened this issue 8 years ago • 8 comments
trafficstars

ERROR: listen EACCESS 0.0.0.0:80

kwamayze avatar Sep 28 '17 08:09 kwamayze

I assume you're on Linux or macOS.

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

greggman avatar Sep 28 '17 08:09 greggman

Yes Mac OS but i figured it out. I just used sudo together with servez. Having a very weird problem that my server will download at 1KB/s with python or node Thank you for the reply

On Sep 28, 2017, at 8:42 AM, Greggman [email protected] wrote:

I assume you're on Linux or macOS.

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/greggman/servez/issues/3#issuecomment-332769880, or mute the thread https://github.com/notifications/unsubscribe-auth/AKDjgOzxgxo16CGjjDw_DnNGlyJYISipks5sm1vpgaJpZM4Pm4c2.

kwamayze avatar Sep 28 '17 20:09 kwamayze

Randomly: this issue can probably be closed?

patrickhlauke avatar Dec 22 '17 14:12 patrickhlauke

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

greggman avatar Dec 23 '17 12:12 greggman

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 avatar Oct 27 '20 05:10 test2a

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

test2a avatar Oct 27 '20 05:10 test2a

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

greggman avatar Oct 27 '20 06:10 greggman

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

test2a avatar Oct 27 '20 09:10 test2a