# %getnamedhost() function

Front end to the socket %gethostbyname() function.

## Syntax

```
port = (unsigned int) %getnamedhos(host);
```

## Parameters

| host | String host name. |
| --- | --- |

## Description

This function returns the host
id or -1 if an error occurs.

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-getnamedhost-function/ - part of the D3Codex reference.
