---
title: stopAdvertisingPeer()
framework: multipeerconnectivity
role: symbol
role_heading: Instance Method
path: multipeerconnectivity/mcnearbyserviceadvertiser/stopadvertisingpeer()
---

# stopAdvertisingPeer()

Stops advertising the service provided by a local peer.

## Declaration

```swift
func stopAdvertisingPeer()
```

## See Also

### Starting and Stopping Advertisement

- [startAdvertisingPeer()](multipeerconnectivity/mcnearbyserviceadvertiser/startadvertisingpeer().md)
