<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.0.0 - 10.13.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSConnection/receivePort-c.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSConnection(py)receivePort"
  },
  "title" : "receivePort"
}
-->

# receivePort

The port on which the receiver receives incoming network messages.

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

## 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

[`- (instancetype) initWithReceivePort:(NSPort *) receivePort sendPort:(NSPort *) sendPort;`](/documentation/Foundation/NSConnection/initWithReceivePort:sendPort:)

Returns an `NSConnection` object initialized with given send and receive ports.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)