Make the IDC tests autodetect boxen and use the appropriate ports

@camilo quick check?