<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/StreamSOCKSProxyConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSStreamSOCKSProxyConfiguration"
  },
  "title" : "StreamSOCKSProxyConfiguration"
}
-->

# StreamSOCKSProxyConfiguration

```
struct StreamSOCKSProxyConfiguration
```

## Topics

### Type Properties

[`hostKey`](/documentation/Foundation/StreamSOCKSProxyConfiguration/hostKey)

Value is an `NSString` object that represents the SOCKS proxy host.

[`passwordKey`](/documentation/Foundation/StreamSOCKSProxyConfiguration/passwordKey)

Value is an `NSString` object containing the user’s password.

[`portKey`](/documentation/Foundation/StreamSOCKSProxyConfiguration/portKey)

Value is an `NSNumber` object containing an integer that represents the port on which the proxy listens.

[`userKey`](/documentation/Foundation/StreamSOCKSProxyConfiguration/userKey)

Value is an `NSString` object containing the user’s name.

[`versionKey`](/documentation/Foundation/StreamSOCKSProxyConfiguration/versionKey)

Value is either `NSStreamSOCKSProxyVersion4` or `NSStreamSOCKSProxyVersion5`.



---

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)