# Running in P2P mode

**URL:** <https://community.coherence.io/t/running-in-p2p-mode/564>\
**Category:** Help\
**Created:** [August 13, 2024, 4:09pm UTC](https://community.coherence.io/t/running-in-p2p-mode/564 "2024-08-13T16:09:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![periwink](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@periwink](https://community.coherence.io/u/periwink)\
**Post date:** [August 13, 2024, 4:09pm UTC](https://community.coherence.io/t/running-in-p2p-mode/564/1 "2024-08-13T16:09:02Z")

</div>

If I understand correctly, if I want to run in P2P mode,  
the host client will be both:

- a client (to be able to control inputs, render the world, etc.)
- a ReplicationServer (launched in a separate thread, to replicate the world to all other clients/simulators, forward messages, etc.)
- potentially also a simulator, if there’s stuff to simulate? Or i guess the host-client could get authority on all the entities that normally the simulator would be handling?

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [August 13, 2024, 4:24pm UTC](https://community.coherence.io/t/running-in-p2p-mode/564/2 "2024-08-13T16:24:18Z")

</div>

Yup, correct on all accounts with one small correction - the RS will run as a separate child process (not in a thread in the same process) [Implementing Client hosting | Unity Multiplayer SDK Documentation | coherence](https://docs.coherence.io/hosting/client-hosting/implementing-client-hosting#starting-a-local-replication-server)

And just for completeness you’ll need to set up a relay so that the client hosting the replication server is discoverable on the internet: [Implementing Client hosting | Unity Multiplayer SDK Documentation | coherence](https://docs.coherence.io/hosting/client-hosting/implementing-client-hosting#relays)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [November 11, 2024, 4:24pm UTC](https://community.coherence.io/t/running-in-p2p-mode/564/3 "2024-11-11T16:24:45Z")

</div>

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