Cannot connect to server

Hello

My friend gave me a copy of D2r Reign of the warlock

But everytime i try to connect it says

Cannot connect to server

Authentification failed

I even restarted my PC and still not working