Your firewall/proxy settings are incorrect, for 6.35 this is in mIRC options > Connect > Firewall for 7.xx this is mIRC Options > Connect > Proxy