v.25.7Improvement

Clickhouse client now reports the local port

Clickhouse client now reports the local port when connection error happens. #83050 (Jianfei Hu).
The ClickHouse client now reports the local port number when a connection error occurs.

Why it matters

This feature helps users diagnose connection issues more effectively by providing additional context about the client's local port used during the failed connection attempt.

How to use it

No special configuration is needed. When a connection error occurs, the ClickHouse client will automatically display the local port number as part of the error message.