arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Connection failure during the WebSocket handshake #168

Closed nicolas-rabault closed 8 months ago

nicolas-rabault commented 8 months ago

I'm trying to connect my MKR1000 to a WebSocket python server. My program get stuck after the client.begin(); I enabled the #define LOGGING and add some prints to see were the code fail. I can connect to the server but then, during the upgrade sequence I'm stuck on sendHeader("Sec-WebSocket-Key", base64RandomKey);

I don't understand why this is failing at this point. Did someone have any idea?

nicolas-rabault commented 8 months ago

I tried on another LAN and the code worked, so it seems that the port I'm using (8000) was blocked by the router.