Force ZNC to connect to the IRC server via ipv4 #235

Closed
opened 2026-10-05 04:07:02 +02:00 by adam · 2 comments
Owner

The hostname for one of the IRC server I connect to has an AAAA record but IRCd does not listen on ipv6. Since connecting to the hostname prefers ipv6 over ipv4, it just times out trying to connect to it.

For a temporary fix, I just connect to the ipv4 IP address directly.

Although it's the IRC server's fault for having an AAAA record (which I reported to them), having an option to forcefully connect via ipv4 would be great.

The hostname for one of the IRC server I connect to has an AAAA record but IRCd does not listen on ipv6. Since connecting to the hostname prefers ipv6 over ipv4, it just times out trying to connect to it. For a temporary fix, I just connect to the ipv4 IP address directly. Although it's the IRC server's fault for having an AAAA record (which I reported to them), having an option to forcefully connect via ipv4 would be great. <!-- github-sync-id:14288694 -->
adam closed this issue 2026-10-05 04:07:02 +02:00
Author
Owner

Set BindHost to either 0.0.0.0 or your real IPv4 address instead

2013/5/14 Neal notifications@github.com

The hostname for one of the IRC server I connect to has an AAAA record but
IRCd does not listen on ipv6. Since connecting to the hostname prefers ipv6
over ipv4, it just times out trying to connect to it.

For a temporary fix, I just connect to the ipv4 IP address directly.

Although it's the IRC server's fault for having an AAAA record (which I
reported to them), having an option to forcefully connect via ipv4 would be
great.

—
Reply to this email directly or view it on GitHubhttps://github.com/znc/znc/issues/358
.

Set BindHost to either 0.0.0.0 or your real IPv4 address instead 2013/5/14 Neal notifications@github.com > The hostname for one of the IRC server I connect to has an AAAA record but > IRCd does not listen on ipv6. Since connecting to the hostname prefers ipv6 > over ipv4, it just times out trying to connect to it. > > For a temporary fix, I just connect to the ipv4 IP address directly. > > Although it's the IRC server's fault for having an AAAA record (which I > reported to them), having an option to forcefully connect via ipv4 would be > great. > > — > Reply to this email directly or view it on GitHubhttps://github.com/znc/znc/issues/358 > . <!-- github-comment-id:17856911 -->
Author
Owner

Oh, awesome! Didn't think of that. Thanks! (You can close this Issue now)

Oh, awesome! Didn't think of that. Thanks! (You can close this Issue now) <!-- github-comment-id:17857008 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#235