Multiplayer Client 1 connecting to server without controller - Unreal Engine 5.5.1

Hello guys,

These past days I tried everything I could think of to fix this problem, but since I am new to it I lack the experience to solve it so I am hoping someone can illuminate me.

I made a simple server host and join following some tutorials and for the most part it works great, with the exception that when I play as Standalone and host a session, Client 1 is able to join and his Pawn is generated but he has no control over it (input is not attached).

I have this Function that searches for 1 of the 4 player spawns on the map.

I use this Function to spawn the Pawn and should theoretically assign it a controller.

Both above functions are in Game Mode Blueprint. The below part that triggers the spawning is in Player Controller Blueprint.

And this is how I Host and Join the server from my main menu (different Level with own Game Mode and Player Controller)

I was thinking that maybe for the Client 1 when connecting to server the code is trying to assign the Controller to the Pawn before the Pawn can get created so I did a trial by changing the code and adding a delay. That did not seem to work either.

Any ideas why this happens?

So I managed to solve it and it was simpler than expected…
It seems that the joining client had the set input mode UI only, while despite the same code the server client worked just fine.

I added the Set Input Mode Game Only to the Player Controller and it works fine now.