---
title: "local(ports:)"
framework: packagedescription
role: symbol
role_heading: Type Method
path: "packagedescription/pluginnetworkpermissionscope/local(ports:)-swift.type.method"
---

# local(ports:)

Allow local network connections, limited to a range of allowed ports.

## Declaration

```swift
static func local(ports: Range<Int>) -> PluginNetworkPermissionScope
```
