# ERROR: Failed to open TCP connection to : (getaddrinfo: No such host is known. )

**URL:** <https://discourse.chef.io/t/error-failed-to-open-tcp-connection-to-getaddrinfo-no-such-host-is-known/20725>\
**Category:** Chef InSpec\
**Created:** [January 28, 2022, 6:37am UTC](https://discourse.chef.io/t/error-failed-to-open-tcp-connection-to-getaddrinfo-no-such-host-is-known/20725 "2022-01-28T06:37:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbrars](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@sbrars](https://discourse.chef.io/u/sbrars)\
**Post date:** [January 28, 2022, 6:37am UTC](https://discourse.chef.io/t/error-failed-to-open-tcp-connection-to-getaddrinfo-no-such-host-is-known/20725/1 "2022-01-28T06:37:31Z")

</div>

We are running inspec as part of chef-client using audit cookbook and reporting the client run to chef automate. On one of windows node, facing a problem where inspec run is failing with the following error message:

```auto
[2022-01-28T10:17:44+11:00] INFO: Chef Infra Client Run complete in 12.3129728 seconds
[2022-01-28T10:17:44+11:00] INFO: Skipping removal of unused files from the cache
[2022-01-28T10:17:44+11:00] INFO: Running report handlers
[2022-01-28T10:17:50+11:00] INFO: Using InSpec 4.18.39
[2022-01-28T10:17:52+11:00] INFO: Running tests from: [{:url=>"https://test.com/winrm-0.1.8.tar.gz", :name=>"winrm"}]
[2022-01-28T10:18:50+11:00] ERROR: InSpec has raised a runtime exception. Generating a minimal failed report.
[2022-01-28T10:18:50+11:00] ERROR: Failed to open TCP connection to : (getaddrinfo: No such host is known. )
[2022-01-28T10:18:50+11:00] INFO: Reporting to chef-server-automate
[2022-01-28T10:18:50+11:00] INFO: Report to Chef Automate via Chef Server: https://chefserver/organizations/testorg/data-collector
[2022-01-28T10:18:50+11:00] INFO: Reporting to json-file
[2022-01-28T10:18:50+11:00] INFO: Writing report to c:\build\inspec_report.json
[2022-01-28T10:18:50+11:00] INFO: Report handlers complete

```

chef-client version is 15.6.10.  
Any pointers will be helpful. Checked couple of configurations against a working node like dns, host file.

Thanks
