I solved my problem. I used port 6660 to connect and it works excellently. Using port 6667 was causing the error.