---
title: "netServiceDidResolveAddress(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/netservicedelegate/netservicedidresolveaddress(_:)"
---

# netServiceDidResolveAddress(_:)

Informs the delegate that the address for a given service was resolved.

## Declaration

```swift
optional func netServiceDidResolveAddress(_ sender: NetService)
```

## Parameters

- `sender`: The service that was resolved.

## Discussion

Discussion The delegate can use the addresses method to retrieve the service’s address. If the delegate needs only one address, it can stop the resolution process using stop(). Otherwise, the resolution will continue until the timeout specified in resolve(withTimeout:) is reached.

## See Also

### Related Documentation

- [addresses](foundation/netservice/addresses.md)

### Using Network Services

- [netServiceWillPublish(_:)](foundation/netservicedelegate/netservicewillpublish(_:).md)
- [netService(_:didNotPublish:)](foundation/netservicedelegate/netservice(_:didnotpublish:).md)
- [netServiceDidPublish(_:)](foundation/netservicedelegate/netservicedidpublish(_:).md)
- [netServiceWillResolve(_:)](foundation/netservicedelegate/netservicewillresolve(_:).md)
- [netService(_:didNotResolve:)](foundation/netservicedelegate/netservice(_:didnotresolve:).md)
- [netService(_:didUpdateTXTRecord:)](foundation/netservicedelegate/netservice(_:didupdatetxtrecord:).md)
- [netServiceDidStop(_:)](foundation/netservicedelegate/netservicedidstop(_:).md)
