# How does Networking work in C++/UE4?

**URL:** <https://forums.unrealengine.com/t/how-does-networking-work-in-c-ue4/50939>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [December 27, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/how-does-networking-work-in-c-ue4/50939 "2015-12-27T19:03:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [December 27, 2015, 9:14pm UTC](https://forums.unrealengine.com/t/how-does-networking-work-in-c-ue4/50939/2 "2015-12-27T21:14:39Z")

</div>

If you look at the .h file for that, you’ll see that Server\_StartFire has the ‘Server, Reliable, WithValidation’ tags. If a function is a ‘Server’ function, then it means that the Client will tell the Server to run that function. This call to the Server is known as an ‘RPC’ (Remote Procedure Call). The call will ONLY work if the Client Player is the ‘Owner’ of that object as far as both it and the Server are concerned.

In this case, when the Client calls ‘Start Fire’, they also tell the server to call ‘Start Fire’ for this weapon so that the Server runs through (some of) the same code (in this case anyway), and actually ends up spawning the projectile or processing an instant hit. I recommend reading the following:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

[A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums](https://wiki.unrealengine.com/Network_Replication),_Using\_ReplicatedUsing_/\_RepNotify\_vars

---

_[View the full topic](https://forums.unrealengine.com/t/how-does-networking-work-in-c-ue4/50939)._
