What server are you trying to connect to? If are trying to connect to DALnet (the default) then that will be your problem.
In mIRC Options click "Connect" on the left and choose "QuakeNet: Random UK server" from the large combo box. Click "Connect to IRC server" and see if it works.