# XPlaneConnect Toolbox-setConn

<-- Back

# setConn

Send a command to set up the port where you will receive data on this computer.

## Inputs

- Receiving Port: Port that data will be sent to in the future for this connection
- IP Address (optional): IP Address of the machine that will receive the data as a character array. Default is '127.0.0.1' (local machine)
- port (optional): Port on the receiving machine where the data will be sent. Default is 49009 (XPlaneConnect). In general use 49009 to send to the plugin and 49005 to send to the x-plane udp

## Outputs

- status: If there was an error. status<0 means there was an error.

## Use

1. import XPlaneConnect.*
2. status = setConn(49011);

## Change Log

10/02/14: [CT] V0.9: Updated to work with updated xpcPlugin
04/21/14: [CT] V0.2: First Version
<-- Back