# RunOnServer event not being hit on Server

**URL:** <https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473>\
**Category:** Programming & Scripting\
**Tags:** client, Replication, Server, unreal-engine, Blueprint, question\
**Created:** [March 10, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473 "2025-03-10T14:14:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 10, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/1 "2025-03-10T14:14:02Z")

</div>

Hello,

I’m having trouble getting a simple client/server RunOnServer call working my project. But what’s odd is, I’ve done this in [tutorials from brand new projects](https://youtu.be/bBK8A-mFH-s?si=jo9CxcEB5ddUHcac&t=894) and it works very easily with little effort. I think there’s something wrong with the way my project is set up. Possibly related to my Pawn, or Level, actor ownership, or project settings. Can you please take a look and share some insight as to what I might be missing?

**Background**

- I made a working proof of concept for a game and now I’m adding multiplayer functionality.
- I can easily get client/server calls working in tutorial projects but for some reason not this project.
- Unreal version 5.4
- I don’t see any networking errors or warnings in the logs.
- I’m using Switch Has Authority where needed (I think)
- I have replication enabled on the Blueprint in which I’m working (BP\_Board). For some reason it’s owner was none so I tried setting it manually but that didn’t fix the issue. But this may be related?
- I’ve set RunOnServer exactly as seen in the tutorial
- I’ve tried Multicast (instead of RunOnServer) and it seems that the other clients are receiving the event! But the Server is still not receiving the event. No idea how that’s possible because isn’t the server relaying the message to the other clients???
- I’ve tried NetMode Play as Client with dedicated server, and Listen Server. I get the same problem on both
- I’ve tried with only 1 client, 2 clients, etc. Same result.

**One big difference** I noticed from my project vs the tutorial that might be the problem: In my project, I’m setting my DefaultPawn in Project settings Maps & Modes to None. And then I’m creating my Pawn for Player0 and Pawn for Player1 inside my level. Each Pawn contains a camera. And I’m using Auto Possess Player to assign them to Player 0 and Player 1 respectively. Is that a good way to do it? Is my Player Pawn setup possibly to blame for why this isn’t working? See screenshots below.

**Another difference** between my project and tutorial: Owner of BP\_Board was set to None/Null. So for some reason I had to Set the owner manually. But that still didn’t fix the issue. I wonder if somehow the server doesn’t see that the player owns BP\_Board so it’s not replicating it. But I’m not sure how to fix that. Note: I Created BP\_Board in the level, I did not spawn it dynamically. Idk if that matters. See screenshots below.

**Another difference** , in my project I’m making RunOnServer call within BP\_Board, which is an actor I added to my level. Where as in the tutorial they are making RunOnServer calls in their Pawn (BP\_ThirdPersonCharacter). Does that matter? I would assume I should be able to make client/server calls on any BP as long as ownership is set up correctly. That’s why I’m wondering if this is an ownership problem. But I’m not sure how to investigate this further…

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/d/0adc848e42b96f57d8a79785d01e143fb8e5178d.jpeg)  
My client event where the client presses F on keyboard

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/0/73019e2ae94f5f43d5a5e52632efddab4fbe9012.png)  
My server event, Run on Server Replication enabled. ROS\_Test

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/f/6afac098bb6dd49e214c51589191e86ed7b2a457.png)  
My BP\_Board blueprint class where these events exist, Replication is turned on in class defaults

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/8/138739d8bd729ff18546457e83498c0b60ba4713.png)  
Project Settings, Maps & Modes

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/3/ab30a068858f27e6051ed8cc546e0df9d2f04399.png)  
Where I initialized BP\_PlayerPawn0 in level

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/7/d77c408ee16269f5ca5b6e4159b5323bb92b22ef.png)  
Where I initialized BP\_PlayerPawn1 in level

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/d/16ded8dd2de592d9fd0d64b0adbbb04963c1e488.png)  
I noticed BP\_Board owner was null, so I set it manually here

 ![Screenshot 2025-03-10 at 9.50.00 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/1/0612b487135a780a7dc50f361ef3013b20024211.png)  
BP\_Board client & server running. Note I only had 1 client running in this test.

 ![Screenshot 2025-03-10 at 9.50.21 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/1/c31137ad1a31ae5fcc4693b3462e2cdf99d15b0d.png)  
GM running on server

 ![Screenshot 2025-03-10 at 9.50.05 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/7/ff72e7a40e9dc64b6801b5031cf63932cb114c00.png)  
PlayerPawns running on client & server.

Logs from this test. You can clearly see things are getting initialized in OnBeginPlay. The client presses F, I can see the player controller is the owner of BP\_Board, I’m calling the function on the server, but the server never receives the event!

```auto
LogBlueprintUserMessages: [None] Client initializing BP_PlayerPawn
LogBlueprintUserMessages: [None] Client initializing BP_PlayerPawn
LogBlueprintUserMessages: [None] Client initializing BP_Board
LogBlueprintUserMessages: [None] Client Pressed F
LogBlueprintUserMessages: [None] Owner = BP_PlayerController_C_0
LogBlueprintUserMessages: [None] Client: Before calling ROS_Test
LogBlueprintUserMessages: [None] I am client calling ROS_Test

```

If this was working I would see `Server: ROS_Test. I should see this!`. But I do not…

And finally, just a quick screenshot from [the tutorial](https://youtu.be/bBK8A-mFH-s?si=jo9CxcEB5ddUHcac&t=894) I was following, I was able to get this working without any issues. And aside from the differences mentioned above, doing this same thing doesn’t seem to work for me in my project

 ![Screenshot 2025-03-10 at 10.12.35 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/7/117f96d35838dc817ce1508ac0707ae630335372.jpeg)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 10, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/2 "2025-03-10T14:33:05Z")

</div>

> [@SkankHunt1000](#):
>
> **Another difference** , in my project I’m making RunOnServer call within BP\_Board, which is an actor I added to my level.

only had a quick look but my guess is this, you can only call RPC with ownership, if BP\_Board is added to the level its owned by the server so clients cant call RPCs.

this fix is to call the RPC from the pawn and/or controller which you do own

---

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 10, 2025, 3:31pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/3 "2025-03-10T15:31:56Z")

</div>

So trying to understand proper multiplayer gaming architecture. Should I always be making requests from my Pawn or from my Controller? So let’s say some event happens within my BP\_Board or BP\_Card or BP\_Weapon or whatever, BP\_Board needs to call Pawn (for example), and then Pawn calls the RunOnServer? So all various actors will be making calls to Pawn and that’s normal? So then Pawn basically has ALL of my server calls in it?

Example: I have BP\_Card on my BP\_Board. Someone touches it, a touch event fires. Board needs to call Pawn which calls to the server.

---

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 10, 2025, 4:09pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/4 "2025-03-10T16:09:23Z")

</div>

Weird. Get this. I did what you suggested. But I found this

 ![Screenshot 2025-03-10 at 12.04.14 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/6/1764a6a83c744b4f8f792ba886b2f332d7783003.png)  
 ![Screenshot 2025-03-10 at 12.03.59 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/2/8e203428bdcdb4306819f7920fd3529b344a4b9d.png)  
Inside BP\_Board, GetPlayerPawn returns null. I’m assuming that’s not normal right? So maybe my Pawn is set up incorrectly in the game and that’s why the server cannot communicate with the BP\_Board or the Pawn?

 ![Screenshot 2025-03-10 at 12.07.06 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/7/0a73b1e85e9f047795de1bf7db085e0ace6ebef2.png)  
 ![Screenshot 2025-03-10 at 12.07.02 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/f/2df9a35398d63e4235de31262fa26b079f1f4ab6.png)  
If I get my Player Pawn from the level, where I created it, using a tag this is what I see. It gets the BP\_PlayerPawn0 which is correct, but it does not have an owner either! So maybe I’m not associating my player pawn with my player controller?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 10, 2025, 4:09pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/5 "2025-03-10T16:09:25Z")

</div>

not exactly, to understand multiplayer, understand that everything happens on the server.  
the server can tell anyone what to do but the player has to request (RPC Server) can i do this?

so anything that happens on the board happens on server. the players are only really RPC input, (i want to do this)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 10, 2025, 4:13pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/6 "2025-03-10T16:13:34Z")

</div>

> [@SkankHunt1000](#):
>
> So maybe my Pawn is set up incorrectly

what is your pawn? usually its the pawn possessed by a controller, if its possessed by the controller, the controller should be the owner

---

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 10, 2025, 4:44pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/7 "2025-03-10T16:44:26Z")

</div>

Okay so here’s what I found now.

1.) I deleted my BP\_PlayerPawns I created in the level.  
2.) I changed my project settings to have BP\_PlayerPawn be the Default Pawn Class. And ensured that my GM class is also pointing to BP\_PlayerPawn as my default pawn class.  
3.) Now the following is working! In my BP\_PlayerPawn class, I can make calls to a RunOnServer event and it works correctly as expected!  
4.) But my BP\_Board still does NOT have an owner for some reason. And if I make a RunOnServer event in my BP\_Board class, it still doesn’t work (Likely becuase it doesn’t have a proper owner set up…?)

So the above tell some that Creating Actors in the level is NOT correct because it doesn’t set up ownership properly. Where as if you spawn actors, it does set up ownership properly. But that begs the question, if I WANT to put an actor in my level and still have its ownership set up properly, how do I do that? I can’t seem to get that to work. If I just call SetOwner it doesn’t seem to work!

---

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 10, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/8 "2025-03-10T16:47:03Z")

</div>

you’d think this would just work, setting the owner of BP\_Board to the owner of GetPlayerPawn (which is now correct). But the RunOnServer call still fails even after I set this owner.

 ![Screenshot 2025-03-10 at 12.46.10 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/2/9b2b2a53ecc5172c3db40e8322fc4800f2314085.png)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 11, 2025, 2:45am UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/9 "2025-03-11T02:45:17Z")

</div>

> [@SkankHunt1000](#):
>
> 4.) But my BP\_Board still does NOT have an owner for some reason. And if I make a RunOnServer event in my BP\_Board class, it still doesn’t work (Likely becuase it doesn’t have a proper owner set up…?)

this is correct, consider multiplayer, there can only be one owner so not all players could own the board and call RPCs, so its considered to be owned by the server.

what you do is call the RPC from your pawn/controller with a reference to the board.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 11, 2025, 2:46am UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/10 "2025-03-11T02:46:11Z")

</div>

also obvious point but make sure the board is spawned by server and replicated

---

<div class="post-metadata">

**Author:** ![SkankHunt1000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkankHunt1000](https://forums.unrealengine.com/u/SkankHunt1000)\
**Post date:** [March 11, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/11 "2025-03-11T15:16:34Z")

</div>

This was one of my big problems that wasn’t obvious to me at the time. I was spawning the board in the level and that was leading to this problem!

Thanks you rock!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 10, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/runonserver-event-not-being-hit-on-server/2383473/12 "2025-04-10T15:16:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
