---
title: "SCDynamicStoreCopyLocalHostName(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecopylocalhostname(_:)"
---

# SCDynamicStoreCopyLocalHostName(_:)

Returns the current local host name.

## Declaration

```swift
func SCDynamicStoreCopyLocalHostName(_ store: SCDynamicStore?) -> CFString?
```

## Parameters

- `store`: The dynamic store session that should be used for communication with the server. Pass NULL to use a temporary session.

## Return Value

Return Value Returns the current local host name, or NULL if the name has not been set or if an error occurred. You must release the return value.

## See Also

### Group

- [SCDynamicStoreCopyComputerName(_:_:)](systemconfiguration/scdynamicstorecopycomputername(_:_:).md)
- [SCDynamicStoreCopyConsoleUser(_:_:_:)](systemconfiguration/scdynamicstorecopyconsoleuser(_:_:_:).md)
- [SCDynamicStoreCopyLocation(_:)](systemconfiguration/scdynamicstorecopylocation(_:).md)
- [SCDynamicStoreCopyProxies(_:)](systemconfiguration/scdynamicstorecopyproxies(_:).md)
