Added support for connecting to arbitary listening ports on the device