tom-2015 / rpi-ws2812-server

Raspberry Pi WS2812 (web) server tool
172 stars 39 forks source link

Cannot get a daemon to use port 9999 #44

Closed hans-martijn closed 4 years ago

hans-martijn commented 4 years ago

Hello,

my /etc/ws2812svr.conf is:

#mode must be first setting in file! mode=tcp port=9999 file=/home/pi/test.txt pipe=/dev/leds init=setup 1,20,4,0,255,12;init

if I start my server and I do a netstat -plnt I get any port above 35000, different every time. I probably have an error somewhere, but I cannot seem to find it. The server itself works, so that's not the problem.

Thanks in advance, Hans

Bigdeath commented 4 years ago

Start it with root privileges.

hans-martijn commented 4 years ago

How else can I start a daemon?

Bigdeath commented 4 years ago

sudo

hans-martijn commented 4 years ago

I know, I wouldn't know how else to start a daemon... sudo

jQubz commented 4 years ago

I think I fixed this in https://github.com/tom-2015/rpi-ws2812-server/pull/45

The daemon was always trying to listen on port 0 :)

hans-martijn commented 4 years ago

That works perfectly, thanks!!!