Polari connect to bouncer with custom port

Polari doesn’t have much to go on in the way of documentation. I’m trying to connect to my ZNC bouncer, which uses a non-standard IRC port. When I try connecting the XChat/HexChat (irc.domain.tld/port) way it just errors out and when I use the standard host-port format (irc.domain.tld:port) it just infinitely tries to connect. How do I fix this?