Basic connection - 2 different machines on same network
Options
detour21
✭
in Photon Bolt
Hi, I'm just doing a simple proof of concept and was using the Bolt tutorial as a starting point. Running the built app twice on the same machine works fine, but I want to test it on 2 machines on the same local network. I have one that is designated as server at startup calling:
BoltLauncher.StartServer(UdpKit.UdpEndPoint.Parse("127.0.0.1:27000"));
and the other as client calling
BoltLauncher.StartClient();
Seems like I need to be providing the correct address for the server? I've worked with PUN before which handles easy autoconnection but not sure what to do in this case. Is there a better example to be looking for?
BoltLauncher.StartServer(UdpKit.UdpEndPoint.Parse("127.0.0.1:27000"));
and the other as client calling
BoltLauncher.StartClient();
Seems like I need to be providing the correct address for the server? I've worked with PUN before which handles easy autoconnection but not sure what to do in this case. Is there a better example to be looking for?
0
Comments
-
To find your local address:
https://www.whatismybrowser.com/detect/what-is-my-local-ip-address
Easy autoconnection:
https://doc.photonengine.com/en-us/bolt/current/in-depth/photon-cloud0