---
title: init()
framework: virtualization
role: symbol
role_heading: Initializer
path: virtualization/vznatnetworkdeviceattachment/init()
---

# init()

Creates an attachment that performs network address translation on the guest system’s network packets.

## Declaration

```swift
init()
```

## Return Value

Return Value An attachment object that communicates with external networks via the host computer.
