---
title: receivePort
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsconnection/receiveport-c.property
---

# receivePort

The port on which the receiver receives incoming network messages.

## Declaration

```occ
@property (retain, readonly) NSPort * receivePort;
```

## Discussion

Discussion You can inspect this object for debugging purposes or use it to create another NSConnection object, but shouldn’t use it to send or receive messages explicitly. Don’t set the delegate of the receive port; it already has a delegate established by the NSConnection object.

## See Also

### Related Documentation

- [initWithReceivePort:sendPort:](foundation/nsconnection/initwithreceiveport:sendport:.md)

### Getting Ports

- [sendPort](foundation/nsconnection/sendport-c.property.md)
- [dispatchWithComponents:](foundation/nsconnection/dispatchwithcomponents:.md)
