FAQ: connections to restricted ports such as 6667 are cancelled by Firefox #940

Closed
opened 2026-10-05 04:54:12 +02:00 by adam · 7 comments
Owner

https://wiki.znc.in/FAQ#How_can_I_access_webadmin_with_my_browser.3F refers to port 6667

With browsers such as Firefox 74.0:

image

This address is restricted

This address uses a network port which is normally used for purposes other than Web browsing. Firefox has cancelled the request for your protection.

Retrying does not succeed.

Please expand answers to frequently asked questions, to include advice on how to proceed. Thanks.

Related:

https://wiki.znc.in/FAQ#How_can_I_access_webadmin_with_my_browser.3F refers to port 6667 With browsers such as Firefox 74.0: ![image](https://user-images.githubusercontent.com/192271/77850434-747e7b00-71ca-11ea-8397-892eab28b071.png) > # This address is restricted > > This address uses a network port which is normally used for purposes other than Web browsing. Firefox has cancelled the request for your protection. Retrying does not succeed. Please expand answers to frequently asked questions, to include advice on how to proceed. Thanks. Related: * https://superuser.com/a/1274115/84988 * https://github.com/MrAlex94/Waterfox/issues/1507 <!-- github-sync-id:589794209 -->
adam closed this issue 2026-10-05 04:54:12 +02:00
Author
Owner

znc --makeconf explicitly warns about not using 6667 for this reason. But having the answer is FAQ also sounds good. Would you write to write that answer?

`znc --makeconf` explicitly warns about not using 6667 for this reason. But having the answer is FAQ also sounds good. Would you write to write that answer? <!-- github-comment-id:605643029 -->
Author
Owner

Thanks, I'm not a user.

@bkidwell can you suggest wording for an answer?

Thanks, I'm not a user. @bkidwell can you suggest wording for an answer? <!-- github-comment-id:611841448 -->
Author
Owner

If you're using a Firefox-based browser, navigate to "about:config" using the address bar, then search for "network.security.ports.banned.override" -- you may have to CREATE this setting; if you do, make it a string. It should be a comma separated list of ports to override and ALLOW the user to use. For just ZNC, make the value "6697,6667".

Something like that?

> If you're using a Firefox-based browser, navigate to "about:config" using the address bar, then search for "network.security.ports.banned.override" -- you may have to CREATE this setting; if you do, make it a string. It should be a comma separated list of ports to override and ALLOW the user to use. For just ZNC, make the value "6697,6667". Something like that? <!-- github-comment-id:611854263 -->
Author
Owner

Really pisses me off that the browser doesn't tell you how to CORRECT the situation.

Really pisses me off that the browser doesn't tell you how to CORRECT the situation. <!-- github-comment-id:611854994 -->
Author
Owner

the browser should tell you how to correct your port in an other software?
well.. why don't you use port 22? or 80? because those are "reserved", or let's call them well known ports.
if you are using or trying to use znc, you should know, that port 6667 and port 6697 are default ports for the ircd to make (or actually receive) user connections.

see: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

(and of course, sshd can be also configured to use other than port 22, or actually pache or nginx or whatever - can be configured to use diff port than 80, so of course, znc can use which ever port you configure, but you should know what you are doing.. or at least, that the browser will bug you with port 6667..)

the browser should tell you how to correct your port in an other software? well.. why don't you use port 22? or 80? because those are "reserved", or let's call them well known ports. if you are using or trying to use znc, you should know, that port 6667 and port 6697 are default ports for the ircd to make (or actually receive) user connections. see: [https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers](https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers) (and of course, sshd can be also configured to use other than port 22, or actually pache or nginx or whatever - can be configured to use diff port than 80, so of course, znc can use which ever port you configure, but you should know what you are doing.. or at least, that the browser will bug you with port 6667..) <!-- github-comment-id:615981146 -->
Author
Owner

The browser is the problem. It should tell you how to correct the problem in browser. ZNC used one port for two purposes. I agree with this decision. I feel that Waterfox and other Firefox-based browsers are incorrect in blocking the use of port 6697 for https.

The browser is the problem. It should tell you how to correct the problem in browser. ZNC used one port for two purposes. I agree with this decision. *I* feel that Waterfox and other Firefox-based browsers are incorrect in blocking the use of port 6697 for https. <!-- github-comment-id:616008043 -->
Author
Owner
Added April 19, 2020 - https://wiki.znc.in/index.php?title=FAQ&diff=2681&oldid=2585 <!-- github-comment-id:5660697116 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#940