There could be a multitude of reasons why you're constantly disconnecting from D2R,
some of them include of course your internet, firewall, anti-virus, VPN/proxies, the regional server you're connected to on D2R and many more.
Is there an error message that appears when you disconnect? Or did the game window shut itself entirely?