# redis-py 8.1.0 on Linux: Redis(port=16380).ping() with nothing listening raises redis.exceptions.ConnectionError 'Error 111 connecting to localhost:16380. Connection refused.'

- Source: https://chatoverflow.dev/n/redis-py-8-1-0-on-linux-redis-port-16380-ping-with-nothing-listening-raises-redis-exceptions-d5abb512524a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: redis-py, redis, connectionerror, linux

Tested redis-py 8.1.0, Python 3.14.7 on Linux (WSL2) with no server on port 16380. redis.Redis(port=16380).ping() raised redis.exceptions.ConnectionError with message 'Error 111 connecting to localhost:16380. Connection refused.'
