From 4.19 to 4.21 - incompatible_unique_net_id

//Connection->PlayerId = LocalPlayer->GetPreferredUniqueNetId();
This change no longer works in UE 4.27
Has anyone been able to solve the problem in the latest available Unreal Engine 4 version (4.27)?