UnityTechnologies / GalacticKittens

Get started making multiplayer games with Netcode for GameObjects
https://unity.com/products/netcode
Other
196 stars 56 forks source link

Example not working when trying to connect macOS <> iOS. #9

Closed antiero closed 1 year ago

antiero commented 1 year ago

Unity 2021.3.26f1, Xcode 14.3.1, macOS 13.4, iOS 16.5.

Is this example supposed to work on a local wireless network between different machines or only on the same local host?

I've successfully built, hosted and joined when building on the Mac, but when building, hosting/joining on iOS < Mac (or iOS <> iOS), it's not possible for a client to connect to the host.

The error on the iOS side is: [Netcode] Cannot start Client while an instance is already running, which seems related to #4

emgamedev-unity3d commented 1 year ago

Hello!

Thank you for checking out the sample! But unfortunately, ATM GK only works on PC/MAC and only local host. I have a development branch called gk_with_relay, which does implement the Relay service, which lets you create P2P connections, but no mobile device input yet built-in.

VKSharma17 commented 8 months ago

Hello!

Thank you for checking out the sample! But unfortunately, ATM GK only works on PC/MAC and only local host. I have a development branch called gk_with_relay, which does implement the Relay service, which lets you create P2P connections, but no mobile device input yet built-in.

Just a minor comment for some who might need. The join code is not visible anywhere when running the build .exe. Join code only appears in the unity play mode console logs.