> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/docker/troubleshoot-docker-networking-issues.md).

# Troubleshoot Docker Networking Issues

In Cortex XSOAR, integrations and automation scripts run either on the server or in a Docker container.

* Server-based integrations: Integrations and automation scripts that run on the server include native integrations (part of the server binary) and JavaScript integrations. JavaScript integrations run within the Cortex XSOAR server process using a JS virtual environment. These integrations use the same network IPs as the server.
* Docker-based integrations: These include integrations written in Python or Powershell. Docker creates its own networking, thus the integrations are using a different networking stack from the Cortex XSOAR server. The source IPs for these integrations are different and provided according to the Docker networking configuration.

**Network issues for integrations**

When running integrations or automations that run within Docker containers you might encounter cases that networking fails for these integrations. The following examples show error messages that indicate a networking issue:

* `[Errno -2] Name does not resolve`
* `[Errno 110] Operation timed out`
* `Failed to establish a new connection: [Errno -3] Try again`

We recommend that you use the [Docker networking stack](https://docs.docker.com/network/) because it provides networking isolation and to consult the Docker documentation to resolve Docker networking issues.

If there are issues running Docker's networking stack, you have the option to run Docker containers with the host networking. In this mode, the container will share the host’s network stack and all interfaces from the host will be available to the container. The container’s host name will match the hostname on the host system. To enable host networking, add the following advanced server configuration in Cortex XSOAR:

* Key: **`python.pass.extra.keys`**
* Value: **`--network=host`**

After you add the server configuration, run the **`/reset_containers`** command from the Cortex XSOAR CLI to reset all containers and to begin using the new configuration.

For multi-tenant deployments, you need to add this setting to each tenant.

**Engines**

If you have Docker networking issues when using an engine, you need to modify the [d1.conf file](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/configure-engines.md#UUID-a97e1f48-3c75-e864-0b9e-24253d4af4dc).

1. On the machine where the Engine is installed, open the d1.conf file.
2. Add to the d1.conf file the following:

   ```programlisting
   {
           "LogLevel": "info",
           "LogFile": "/var/log/demisto/d1.log",
           "EngineURLs": [
           "wss://1234.demisto.live/d1ws"
           ],
                   "BindAddress": ":443",
           "EngineID": "XYZ",
           "ServerPublic": "ABC"
           "ArtifactsFolder": "",
           "TempFolder": "",
           "python.pass.extra.keys": "--network=host"
           }
   ```
3. Save the file.
4. Restart the engine using `systemctl restart d1` or `service d1 restart`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/docker/troubleshoot-docker-networking-issues.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
