ZNC is an IRC bouncer: it stays connected to your IRC networks and channels on your service day and night. Your IRC program on the computer or phone connects to ZNC instead of the network, and when it does, ZNC plays back what was said while you were away. The steps were tested with ZNC 1.8.2 on our demo service and the network Libera.Chat. If you prefer to chat in the browser, see The Lounge.


1. Install ZNC and Sign In

In the Client Area, open your service and the Apps tab. Click Install at ZNC. When it is installed, click Show details: the address of the ZNC web page (1), the user name and password (2) and LOG IN (3). The ZNC page asks for the user name and password at the top right; use the ones from the Apps tab.

ZNC details on the Apps tab: the address, the user name and password, LOG IN

2. Create a Certificate for Encrypted Connections

Your IRC program should connect to ZNC encrypted, so that your password does not travel in plain text. ZNC needs a certificate for that. Connect over SSH (SSH how to get connected) and run once:

znc --makepem

The answer ends with Writing Pem file [/homeX/username/.znc/znc.pem]. The certificate is made by ZNC itself, so IRC programs warn that it is not trusted; step 6 shows how to accept it.

3. Open a Port for Your IRC Program

A new ZNC listens only for its web page. In the menu on the right, click Global Settings. Under Listen Port(s), leave the first row as it is: it is the web page, marked Current. Fill in the empty last row:

  • Port (1): a free number between 29000 and 30000. For example 29437; choose your own.
  • Tick SSL (2).
  • Untick IPv6 (3) and HTTP (4). With HTTP unticked, this port serves only IRC programs; the web page stays at its address.

Click Add (5). The new port is listed at once; ZNC saves it by itself.

Listen Port(s): the new port, SSL ticked, IPv6 and HTTP unticked, and Add

4. Set Up Your IRC Network

Click Your Settings on the right. Under Networks, a new ZNC already has a network called default, but it points to your own service, port 6667, where there is no IRC server. Click Edit at it and change:

  • Network Name (1): a short name of the network, for example libera. You need it in step 6.
  • Nickname and Alt. Nickname (2): your nick on this network, and a second one for when the first is taken.
  • Under Servers of this IRC network (3): the Hostname of the network, for example irc.libera.chat, Port 6697, and SSL ticked. The website of your network lists its server and its SSL port.

Edit Network: the network name, the nicknames and the server irc.libera.chat, port 6697, SSL

Click Save and return at the bottom. ZNC connects to the network right away: Networks shows the server under Current Server and your nick.

Networks: libera, connected to irc.libera.chat:+6697

5. Add Your Channels

Open the network again with Edit and click Add under Channels. Enter the Channel Name (1). Buffer Size (2) is how many lines ZNC keeps for you while you are away. Tick Enabled (3): it is not ticked when the page opens, and without it ZNC does not join the channel. Click Add Channel and return (4).

Add Channel: the channel name, Buffer Size, Enabled ticked and Add Channel and return

ZNC joins the channel within a minute. Channels you join from your IRC program later are remembered by ZNC as well.

6. Connect Your IRC Program to ZNC

In your IRC program, for example HexChat, mIRC, Textual or an IRC app on your phone, add a server with these details:

  • Server: the name of your server, for example ds12345.seedhost.eu, as in the address of ZNC.
  • Port: the port from step 3, for example 29437.
  • SSL or TLS: on. Accept the certificate of ZNC; many programs have a setting such as Accept invalid SSL certificates for this.
  • Server password: your user name, a slash, the network name, a colon and your ZNC password, for example username/libera:yourpassword. If the program has separate fields, enter username/libera as the user name and the password as the password.

Connect. When you connect again later, ZNC sends what was written in the channel meanwhile: Buffer Playback..., the message with the time it was written, and Playback Complete.


Good to Know

  • The IRC network sees the address of your service, not your own. Some networks limit how many connections may come from one address.
  • To add another network, click Add under Networks and connect your IRC program with that network name in the password, for example username/othernet:yourpassword.
  • Allowed IPs under Your Settings limits from which addresses IRC programs may connect to ZNC.
Was this answer helpful? 195 Users Found This Useful (292 Votes)