The most common reason for this type of issue is anti-virus/security software incorrectly blocking mIRC and preventing it from connecting to the internet. If you are using anti-virus/security software, you would need to check that it is configured to allow mIRC to connect to the internet.