In xplane11 under the network tab click on 'iphone, ipad, and external apps'. Click on 'Add connection to Xavion or Flyq'. Enter the ip address of the device running AvareX. Do not change the port number. Click on Done.
AvareX will connect automatically.