originallyus / node-red-contrib-alexa-local

An easy-to-use NodeRED node for adding Alexa capability to NodeRED. NO Alexa Skills required.
106 stars 25 forks source link

This node is STILL WORKING great! - Port 80 recommendation #104

Open Catfriend1 opened 4 years ago

Catfriend1 commented 4 years ago

Hi,

you can detect if port 80 is LISTENING with this command: ss -pt state listening 'sport = :80'

You can allow node to listen on port tcp #80 by using this command - verified working on Debian 10 (buster): setcap 'cap_net_bind_service=+ep' $(eval readlink -fwhich node)

Would be nice if you could add this to the home page or a new wiki page in this repo.

Thanks.

Kind regards Catfriend1

P.S. I'm using Amazon Echo Plus Gen2 successfully with this!

torinnguyen commented 4 years ago

do you mind explaining what does the "setcap" command does?

On Thu, 19 Dec 2019 at 23:06, Catfriend1 notifications@github.com wrote:

Hi,

you can detect if port 80 is LISTENING with this command: ss -pt state listening 'sport = :80'

You can allow node to listen on port tcp #80 https://github.com/originallyus/node-red-contrib-alexa-local/issues/80 by using this command - verified working on Debian 10 (buster): setcap 'cap_net_bind_service=+ep' $(eval readlink -f which node)

Would be nice if you could add this to the home page or a new wiki page in this repo.

Thanks.

Kind regards Catfriend1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/originallyus/node-red-contrib-alexa-local/issues/104?email_source=notifications&email_token=AAF3KWE57O34LII35CIU5VDQZOLY5A5CNFSM4J5J6VCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBV7MIA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3KWBDLZQ5RNY7BGXKDMTQZOLY5ANCNFSM4J5J6VCA .

-- http://originally.us

Catfriend1 commented 4 years ago

It's explained here pretty well: https://unix.stackexchange.com/a/389903 and: http://man7.org/linux/man-pages/man8/setcap.8.html

Short form: it allows the node process running as a non-root user to bind a service port for networking.

caobach42 commented 4 years ago

hi, can you provide commands for node-red running in Raspberry, this node is not working for me