---
title: restart()
framework: network
role: symbol
role_heading: Instance Method
path: network/nwconnection/restart()
---

# restart()

Restarts a connection that is in the waiting state.

## Declaration

```swift
final func restart()
```

## Discussion

Discussion Restart a connection when it is in the waiting state and you have reason to believe the connection may succeed if it tries again. Connections that are waiting will automatically restart on network path changes.

## See Also

### Creating Connections

- [init(host:port:using:)](network/nwconnection/init(host:port:using:).md)
- [init(to:using:)](network/nwconnection/init(to:using:).md)
- [start(queue:)](network/nwconnection/start(queue:).md)
