[Home](./index.md) > [bitburner](./bitburner.md) > [Darknet](./bitburner.darknet.md) > [getDepth](./bitburner.darknet.getdepth.md) ## Darknet.getDepth() method Gets the current depth of the specified server into the darknet. Servers immediately below Darkweb are depth 0, and each visual row in the UI below that increases the depth of the server. Returns -1 if the server is offline, not found, or not a darkweb server. **Signature:** ```typescript getDepth(host?: string): number; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| host | string | _(Optional)_ Optional. Hostname/IP of the server to check. Defaults to the running script's server. |