Posts: 1
Joined: Tue Jan 16, 2018 7:42 pm

NodeJs - Music stream stops when accessed via DynDNS

Tue Jan 16, 2018 7:51 pm

Hey guys,

I experience some problems when I try to stream some music from my Raspberry Pi 3.

On my Pi I have a MP3 file and a NodeJs webserver with some routes running on port 1234.
When I open https://localhost:1234/play in the Pi's browser, I can hear the MP3 playing.
Also, accessing the server from a different computer in the same network does work, e.g. calling from my notebook's browser.

Now I also want access from outside my home WiFi, so I registered for a DynDNS service, configured my Pi and the port forwarding on my router. Making some REST calls to the NodeJs server also works in this case.

But streaming the MP3 is NOT working. When I open I hear the music playing for less than 1 second but nothing else.

Neither the server nor the browser shows any errors in the console. In the network tab from devtools I can see that the request is still running and its status is 206 - partial content, which seems correct.

Any ideas? Could my DynDNS provider be the reason? Or router settings?
Thanks in advance and best regards

Posts: 229
Joined: Wed Dec 07, 2016 6:33 am
Location: Hong Kong

Re: NodeJs - Music stream stops when accessed via DynDNS

Thu Jan 18, 2018 6:10 am

Have you tried to use the public IP address to test that (i.e. not using DynDNS service)? If that works, then it is related to the DynDNS. If using public IP address directly from public Internet also not works, then it should not related to the DynDNS, but the connection between your Pi and the public Internet via your router. I suspect the latter is more likely.

You can get your public IP of the server using some external service like "".

Return to “Other programming languages”