A black screen followed by an instant exit almost always means a version mismatch. Private servers are built against one specific client revision, and running the wrong one produces exactly this symptom.
Download the client the server's own site specifies, apply any repack patches in the listed order, and check that your video mode and resolution match what the server expects.
Running as administrator and disabling conflicting overlays clears up most of the remaining cases.