I also have this problem on occasion. The only thing you can do is to keep trying. I recommend that you not use a specific server.
In mIRC Options - Connect - Options - Retry
have both check boxes checked.
In mIRC Options - Connect - Servers
set IRC Network to DALnet
set IRC Server to DALnet: Random server

Aside from that, all you can do is just keep trying.