---
title: connectToFTPService()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/obexfiletransferservices/connecttoftpservice()
---

# connectToFTPService()

Connect to a remote device for FTP operations

## Declaration

```swift
func connectToFTPService() -> OBEXError
```

## Return Value

Return Value kOBEXSuccess, kOBEXSessionBusyError, or kOBEXSessionAlreadyConnectedError, kOBEXNoResourcesError initially. Further results returned through the fileTransferServicesConnectionComplete: delegate method if initially successful.

## Discussion

Discussion If the OBEXSession given to OBEXFileTransferServices on creation is not connected it can be manually connected through this method.
