Routers can block IRC connections. Check your router settings to see if yours has such an option. Also, make sure any firewall that you have is set to not only allow the ports, but also allow IRC because some will also block IRC in general regardless of the port forwarding done.