> For the complete documentation index, see [llms.txt](https://zmink.gitbook.io/node-tcrouter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zmink.gitbook.io/node-tcrouter/guides-1/device-connection-status.md).

# Device Connection Status

#### Test Device Connection

The example below shows how to implement a simple connection check to the TC Router device. This enables network connectivity to be tested directly without having to call other functionality.

```javascript
const tcr = require(" @phoenixcontactusa/node-tcrouter");

var TCRouter = new tcr("192.168.1.1", 1432, 3000);

//Quickly test that the TC Router is available at the supplied ip address
//and port
TCRouter.testConnection()
  .then(info => {
    console.log(info);
  })
  .catch(e => {
    console.log(e);
  });
```
