# 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.9/api-reference/replication-server) and connect multiple instances.

### Running a Replication Server locally

You can run a local Replication Server from the *coherence* menu:

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FB6lVE9o42aV4wEG5atYR%2FScreenshot%202022-07-06%20at%2012.57.23.png?alt=media\&token=52d1bef3-ead0-4533-acd3-a834b9c0ca70)

This will open a new terminal window with the Replication Server and a World created in it.

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FRMonCI1RBDvgV9ROd138%2FScreenshot%202021-12-22%20at%2017.06.10.png?alt=media)

## 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.

![coherence -> CoherenceHub](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2Fgit-blob-f26677df213076214f93a0cf17f9f959311e6a7c%2FCoherenceHub_ServersTab_LocalReplicationServer.png?alt=media)

### Build and Connect

Now it's time to make a standalone build and test network replication.

{% 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 %}

{% hint style="info" %}
Note that for this sample we are running a World on a server, so make sure that *Connect Dialog Selector* in your *Coherence Sample UI* object on scene is set to *Worlds* as well.

<img src="https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FShTCHPNEZO3GQcWRgl9t%2Fimage.png?alt=media" alt="" data-size="original">
{% 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***.**

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FtM5RcAMJ8XPv819lUaip%2Fimage.png?alt=media)

Select a folder (e.g. *Builds*) and click *OK*.

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FKrB2XA52CCGjUlTayst0%2Fimage.png?alt=media)

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

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2FsUXwZbzFBLbnf3xR99Yg%2FScreenshot%202021-12-22%20at%2017.14.27.png?alt=media)

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.

![](https://3798176112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcBSvjNQZSas5L9C0K8K%2Fuploads%2Fm8ZEJTk48YbTmQjHw93S%2FScreenshot%202021-12-22%20at%2017.15.07.png?alt=media)

{% hint style="success" %}
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.
{% 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.

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 %}
