I stumbled across some SuperMicro servers refusing to let me connect to their graphical console via IPMI web interface with the meaningless error message “Connection failed”.
So I found a way to do this manually:
Requirements:
[HOST_iKVM] client = yes accept = 127.0.0.1:12345 connect = 172.16.XX.XX:3520
stunnel /path/to/your/stunnel.conf
java -Djava.library.path=. -jar iKVM.jar 127.0.0.1 adminuser 'adminpass' null 12345 623 0 0 --BMCIP172.16.XX.XX