# Build and run

Now we can build the project and try out network replication locally.

This example will show you how to launch a local [replication server](https://docs.coherence.io/0.4.14/api-reference/replication-server) and connect multiple instances.&#x20;

### Running a Replication Server Locally

You can run a local replication server from the **coherence** menu by clicking:

`coherence -> Server -> Run Local Server`.

![](https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MaTZy23yPIw8CSGLpkl%2F-MaTaV9NhJgkyZkWOabT%2Frunlocalserver2.png?alt=media\&token=a9e83886-194a-4656-89b5-1ad993a04b31)

This will open a new terminal window with the replication server.

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvNHVxxSMe2jqY3z9K%2F-MYvNlS4SzYEsUt9BGeD%2Fimage.png?alt=media&#x26;token=798a14fb-c401-49a1-bb2f-236b9cb827b7" alt=""></div>

### Build and Connect

Now it's time to make a standalone build an test network replication.&#x20;

{% hint style="info" %}
\#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.
{% endhint %}

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.**&#x20;

![](https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvNoqCn0UfcLVjJZlv%2F-MYvOGM_C3shfCIOZhyV%2Fimage.png?alt=media\&token=379b98d6-425d-4162-9f21-f4328d072c75)

Select a folder (e.g. *builds*) and click OK.&#x20;

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvPU9CkvzcMfI_qDAc%2F-MYvPgtHGtAHgj3Is6an%2Fimage.png?alt=media&#x26;token=54850378-e7c9-4347-98b3-e63970b6b3e2" alt=""></div>

When the build is done, start another instance of the executable (or run the project in the *Game Window* in Unity).

![](https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvPU9CkvzcMfI_qDAc%2F-MYvPoBbe7HCARjetkPm%2Fimage.png?alt=media\&token=46dbde3e-aec9-472c-8290-0cea76b92c95)

Click **Connect** on both clients. Now try focusing one and using WSAD keys. You will see the box move on the other side as well.

<div align="left"><img src="https://3643360286-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd0ZPEK7vE9nkE0b7G%2F-MYvPU9CkvzcMfI_qDAc%2F-MYvQ6ESJVs957MMM4GH%2Fimage.png?alt=media&#x26;token=eb5e1a75-2bc3-4e74-a140-df70085b6195" alt=""></div>

{% hint style="success" %}
Congratulations, you've made your first coherence replicated experience. But this is only the beginning. Keep reading to take advantage more advanced coherence features.
{% endhint %}

### Connect across the local network

If you want to connect to the local replication server from another local device (such as another PC, Mac, Mobile or VR device), you can find your IPv4 address and use that as your server address in the *Connect* dialog. These devices need to be connected to the same network.&#x20;

You can find your IPv4 address by going to your command line tool and type `ipconfig` . Remember to include the port number, for example 192.168.1.185:32001.

{% hint style="info" %}
Make sure your Firewall allows remote connections to connect to the replication server from other devices on your network.
{% endhint %}
