Search code examples
pythonjavawebsocketraspberry-pimicronaut

Raspberry Pi unable to connect to Windows Websocket


I am attempting to send data from a Python script running on a Raspberry Pi to a Java Micronaut ServerWebSocket running on a Windows machine, but I am getting asyncio.exceptions.TimeoutError errors during the process.

I attempted to use the websockets library in Python on the Raspberry Pi to establish a websocket connection, but encountered a ConnectionRefusedError. Is this issue related to a network problem as mentioned here, and should I ask somewhere else like Superuser or Serverfault? Or is there another solution to this problem?


Solution

  • As @life888888 suggested, it had something to do with Windows firewall.

    But instead of the public firewall being the problem, it was the one for the domain network instead.