dgurkaynak / nodeshout

Native libshout bindings for node.js
MIT License
49 stars 19 forks source link

Cannot start stream with external host #7

Closed EwanRoycroft closed 4 years ago

EwanRoycroft commented 4 years ago

I am having trouble connecting connecting nodeshout to external Icecast servers. When connecting to localhost, it works perfectly; but if I put in the hostname for an Icecast server on another computer, the stream fails to start.

The program stops when shout.open() invokes ffi_call() in the FFI proxy function. There is no console output, it just hangs.

Here's my stack trace:

Trace
    at eval (eval at proxy (./node_modules/ffi/lib/_foreign_function.js:59:5), <anonymous>:1:9)
    at Object.proxy [as shout_open] (./node_modules/ffi/lib/_foreign_function.js:59:5)
    at shoutT.open (./node_modules/nodeshout/src/shoutT.js:185:21)
    at Object.<anonymous> (./index.js:76:7)
    at Module._compile (internal/modules/cjs/loader.js:686:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
TriPSs commented 4 years ago

Could you give an example of the hostname that does not work and how you set it?

EwanRoycroft commented 4 years ago

Tried it on a third network now an it's working fine. I assume this must be a proxy/firewall issue.

dgurkaynak commented 4 years ago

I've just tried with a remote icecast server in my local network (192.168.x.x), and I can confirm it's working 👍