Skip to content

ConnectionRefusedError: [Errno 61] Connection refused since v2.4.0 #938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kwadsten opened this issue Mar 4, 2025 · 1 comment
Open

Comments

@kwadsten
Copy link

kwadsten commented Mar 4, 2025

Hi,

I recently updated my arduino libraries to the latest versions and now my websocket server no longer accepts connections.

I am serving a webpage and creating a websocket server on my ESP32 (NODE32S) and accessing it through my iPad and madOS.

It works fine with v2.4.0 but not with v2.4.1 or higher.
If I go back to v2.4.0 it works again.

I am not using any sort of SSL or secure connection. My esp32 app creates a webserver (on port 80), serves a webpage and starts a websocket connection (on port 8001).

Any ideas?

I'm getting a ConnectionRefusedError: [Errno 61] Connection refused error on the iOS/macOS side (Safari, firefox, chrome all cannot connect).

@karadevnet
Copy link

because i have not chance to post new issue about my example with pico2040 + W5500 lan chip jack plugin will post it here. apologize to this mate that is first post, but need urgent what to do about it. i make a server board that need to use web socket with web site in file systen for pico with lib of earl philpower III
and find this lib for webs socket but it is closed only for wifi like i see in compiling
here is error i receive when try to compile

===================================================================
In file included from E:\ELECTRONICS_2025_FEBRUARY\RASPB_PICO_LAN_RELAYS_W5500\PICO_W5500_SERVER_BOARD_ONE_USER_WORK\RASPB_PICO_LAN_BOARD_SERVER_W5500\RASPB_PICO_LAN_BOARD_SERVER_W5500.ino:17:
C:\Users\batkoko\AppData\Local\Arduino15\libraries\Ethernet\src/Ethernet.h:150:9: warning: "UDP_TX_PACKET_MAX_SIZE" redefined
150 | #define UDP_TX_PACKET_MAX_SIZE 24
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1\libraries\WiFi\src/WiFi.h:11,
from c:\Users\batkoko\Documents\Arduino\libraries\WebSockets\src/WebSockets.h:250,
from c:\Users\batkoko\Documents\Arduino\libraries\WebSockets\src/SocketIOclient.h:11,
from E:\ELECTRONICS_2025_FEBRUARY\RASPB_PICO_LAN_RELAYS_W5500\PICO_W5500_SERVER_BOARD_ONE_USER_WORK\RASPB_PICO_LAN_BOARD_SERVER_W5500\RASPB_PICO_LAN_BOARD_SERVER_W5500.ino:1:
C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040

RASPB_PICO_LAN_BOARD_SERVER_W5500 - Copy.txt

\hardware\rp2040\4.5.1\libraries\WiFi\src/WiFiUdp.h:28:9: note: this is the location of the previous definition
28 | #define UDP_TX_PACKET_MAX_SIZE 8192
| ^~~~~~~~~~~~~~~~~~~~~~
C:\Users\batkoko\AppData\Local\Arduino15\libraries\Ethernet\src/Ethernet.h:56:6: error: multiple definition of 'enum EthernetLinkStatus'
56 | enum EthernetLinkStatus {
| ^~~~~~~~~~~~~~~~~~
In file included from C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1\libraries\WiFi\src/utility/lwIP_nodriver.h:3,
from C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1\libraries\WiFi\src/WiFiClass.h:33,
from C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1\libraries\WiFi\src/WiFi.h:6:
C:\Users\batkoko\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1\libraries\lwIP_Ethernet\src/LwipIntfDev.h:66:6: note: previous definition here
66 | enum EthernetLinkStatus {
| ^~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

i don know how to do it with this lib or just need some other. and can this lib will be make it to work with wired w5500 hardware with ethernet lib from https://github.com/earlephilhower/arduino-pico lib. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants