One quick way to check if we're on the server or on the client in a multiplayer game using Visual Studio watch window in a debugging session:
Put that into watch:
UE4: UE4Editor-Engine!GPlayInEditorContextString
UE5: UnrealEditor-Engine!GPlayInEditorContextString