> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-nodejs/functions/testport-port.md).

# testPort(port)

Tests whether the proxy bound to a given port is currently online.

```javascript
testPort(port)
```

***

## Parameters

* **port** (<mark style="color:green;">number</mark>) – Port to test.

## Return Value

number – 1 if online.

## Example

```javascript
// example

const online = sdk.testPort(60000);
console.log("Online:", online === 1);

```
