Using UNet Servers with Steamworks Servers

I’m making a game and need to initialize a Steamworks server using Steamworks.NET, and then run my Unity game on that server using UNET.

It seems like to do this, I use the Steamworks code to initialize a steamworks server on whatever port I want. Then, once this is successful, and I have my port connected to steam, THEN I start up my UNet server on that same port.

Is this correct? I think it is, and it seems to be working, but I’m having trouble getting multiple servers working and I’m wondering if it is because I’m doing it wrong.

1 Like

Your question finally prompted me to look into this a bit myself. I’m not 100% sure but I think you want to use this: http://docs.unity3d.com/ScriptReference/Networking.NetworkTransport.ConnectEndPoint.html

That’s assuming you can get the EndPoint from steam. I think it may be that you can do this using steam’s legacy networking but not the newer stuff? Sorry my answer is so vague, but I’m really just figuring this out myself.