0

I am testing Kitties example. Substrate template code is on Machine 1, Nodejs template code is on Machine 2. And I encounted this error(when start nodejs template):

Error Connecting to Substrate Connection to websocket 'ws://192.168.1.108:9944/' failed.

Is there anyway to Substrate code listen from LAN network?

2
  • 2
    Check this one. You can try running your node with --unsafe-ws-external --unsafe-rpc-external --rpc-cors all. Commented Jun 3, 2022 at 8:46
  • @ArturGontijo It works fine, post as answer mate! Commented Jun 3, 2022 at 9:13

1 Answer 1

1

Try running your node like:

./target/release/node-kitties --dev --unsafe-ws-external --unsafe-rpc-external --rpc-cors all

Not the answer you're looking for? Browse other questions tagged or ask your own question.