Here is a sample of the current output when you launch our Flask server:

 * Serving Flask app 'run_training_server'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on <http://127.0.0.1:8080>
 * Running on <http://192.168.0.157:8080>
Press CTRL+C to quit
 * Restarting with stat
/Users/justinlin/.pyenv/versions/3.10.14/lib/python3.10/site-packages/onnxscript/converter.py:823: FutureWarning: 'onnxscript.values.Op.param_schemas' is deprecated in version 0.1 and will be removed in the future. Please use '.op_signature' instead.
  param_schemas = callee.param_schemas()
/Users/justinlin/.pyenv/versions/3.10.14/lib/python3.10/site-packages/onnxscript/converter.py:823: FutureWarning: 'onnxscript.values.OnnxFunction.param_schemas' is deprecated in version 0.1 and will be removed in the future. Please use '.op_signature' instead.
  param_schemas = callee.param_schemas()
 * Debugger is active!
 * Debugger PIN: 116-102-301

It outputs two IP addresses where the server is accessible via HTTP endpoints. One of them is the loopback address (127.0.0.1) which corresponds to making requests on your local machine. The other is a local network address, which allows you to make requests to the server over your own WiFi network if your developing wirelessly using a headset.

To make requests to the endpoints from our Unity app, you must paste one of the two addresses in this Uri field:

image.png

Let’s make the output from our server better, so it’s easier to understand which one the user should paste into Unity. Update the output so that 127.0.0.1 is followed by something like “Paste this address into the Uri field in Unity if you’re using the Meta XR Simulator on your computer, or a headset plugged into your computer in Link Mode”. The other address should be followed by “Paste this address into the Uri field in Unity if you’re using an unplugged headset on the same WiFi network as your computer”.