Geth Websocket Connection Issue – Troubleshooting Geth Websocket Connectivity

go-ethereumport-numberswebsocket

I am trying to connect to Geth via Websockets but unfortunately i am given 403 error.
I am using the --ws --wsport XXXX args.

Everything is done in a local instance, so that would be surprising if it has something to do with the port.

Any idea ?

Thank you.

Best Answer

At a guess, it's because of this:

--ws.origins value Origins from which to accept websockets requests

I encountered the same 403 error, added --ws.origins="*", and was able to connect. Please note that for security reasons you most likely do NOT want to allow * but instead be more explicit.

Related Topic