I like to be able to keep an eye on Mgcamd's logging output as I'm playing around, and as you know it can send it out to a UDP port.
So I set the logging option in mg_cfg to
and on the PC (Ubuntu laptop on .5) use netcat to view it
which works fine.
However, as I have a few different PCs on my home network, it was a pain in the arse having to change mg_cfg and restart if I wanted to view the output with a different PC.
I tried setting mgcamd to send it to the broadcast address 192.168.0.255 29000 - but that didn't work. No problem I thought, I'll get mgcamd to send to my home server (ie an ancient laptop :-) ) and just broadcast it from there.
Fuck me, something so simple has been doing my head in!
I tried various approaches with netcat, but netcat couldn't open a broadcast connection
y@ubuntu:~$ echo "test" | nc -u -vv 192.168.0.255 29123
nc: connect to 192.168.0.255 port 29123 (udp) failed: Permission denied
so after a bit of googling I moved to socat to do the forwarding on the server, eventually arriving with
But with the data being forwarded, when I try to receive it with netcat an a PC, it only gets one line, and then just sits there!
AAARRRGGGGHHHHHHH! I really thought that even to a Linux & networking imbecile like me this would be simple!
Hopefully some of the experts can tell me what stupid mistake I'm making!