You’ll need to be a registered developer with Sony before you can get access to the UE4 PS4 OnlineSubsystem.
Checkout the blog post here for more information and instructions on how you would accomplish this: PlayStation 4 and Xbox One Now Supported! - Unreal Engine