Local Development
Now we can build the project and try out network replication locally.
This example will show you how to launch a local Replication Server and connect multiple instances.
Running a Replication Server locally
You can run a local Replication Server from the coherence menu:
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FgA9rspk9DHstD0ptCC3B%252Flocal-rs.png%3Falt%3Dmedia%26token%3D74fd7273-4f04-455b-8ec9-8e6f2e5568b9&width=768&dpr=4&quality=100&sign=7e165363&sv=1)
This will open a new terminal window with the Replication Server and a World created in it.
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FP2FglV2HLe4ttarBTYUT%252FScreenshot%25202021-12-22%2520at%252017.06.10.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e9db4c26&sv=1)
Building through Coherence Hub
As with most features found in the menu, you can find local replication server functionality in the Coherence Hub as well. Open the Servers tab and run a Room or a World Replication Server.
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FuamxP2Vcq5c1onV5Mdfc%252Fhub-rs.png%3Falt%3Dmedia%26token%3D26444b53-2271-4de8-b86f-c7c540c77f5f&width=768&dpr=4&quality=100&sign=dc21832&sv=1)
Build and Connect
Now it's time to make a standalone build and test network replication.
#protip: Go to Project Settings, Player and change the Fullscreen Mode to Windowed and enable Resizable Window. This will make it much easier to observe standalone builds side-by-side when testing networking.
Open the Build Settings window (File > Build Settings). Click on Add Open Scenes to add the current scene to the build. Click Build and Run.
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FDBJ2YGYzBBMO9jOAy0WV%252Fimage.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=f8d76e8b&sv=1)
Select a folder (e.g. Builds) and click OK.
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FXbn63Dr3ONnmjuxVxChr%252Fimage.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=6c26db77&sv=1)
When the build is done, start another instance of the executable (or run the project in the Game Window in Unity).
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FJ5KLjBsNMggJRZ18ZAFQ%252FScreenshot%25202021-12-22%2520at%252017.14.27.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=fc0f6fb3&sv=1)
Click Connect on both clients. Now try focusing one and using WASD keys. You will see the box move on the other side as well.
![](https://docs.coherence.io/~gitbook/image?url=https%3A%2F%2F352971571-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOnNWMLfYsbCzCnIbNrcP%252Fuploads%252FysX0fPcQHpVOCcKMYA2n%252FScreenshot%25202021-12-22%2520at%252017.15.07.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=952f3280&sv=1)
Congratulations, you've made your first coherence replicated experience. But this is only the beginning. Keep reading to take advantage of more advanced coherence features.
Last updated