Warning: Steam Dedicated Server API failed to initialize

I’ve already filled out all required steam ports in the playfab server build and I added the globaldefinitions for steam to the unreal engine project in the target.cs files. Would anyone know how to fix this? The error also includes:

STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine.