I have a geth node running on one PC, IP and on my main dev machine IP, I'm trying to connect to it via web sockets but keep getting connection not open. Both are on the same LAN.

My program and the connection works fine when I use HTTP provider.

const endpoint = ''; //works fine

const endpoint = 'ws://'; //connection not open
const wsProvider = new Web3.providers.WebsocketProvider(endpoint);

geth --rpc --ws --wsaddr "" --wsorigins "*" --wsport "8445"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.