What is the easiest approach for connecting a Unity client with a C++ server?

Hi!

I’m very new when it comes to networking. What I want to do is write a server in C++ and connect it to a client made using Unity. Could you point me in the general direction of how to approach this? What would be a good C++ networking library to use that can easily interact with Unity?

To give you a general idea of the kind of networking required: All the client has to do is send keyboard input to the server once every second or so, and the server sends some game state back every second or so. I don’t really require advanced real-time networking stuff.

Thanks a lot :slight_smile:

If you just write your game using the basic built in UNet (Watch some youtube tutorials), there is a built in option to simply use the client as a host only and not spawn a character in.

That would mean that I have to write the server in Unity?