Calling SpawnActor() using GetSocketLocation() does not spawn the actor at the right location

I have tried doing drawdebugsphere and the bullet spawns on the socket location on the server but not on the clients. This code is currently in a server rpc. And weirdly enough it does spawn normally in a single player game. Do you think there’s a problem with spawning things server side?