{
    "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused",
    "locale": "en",
    "title": "ConnectionRefused: Knowledge hub | DeLaParra Services",
    "description": "The attempt to connect to a server was explicitly rejected — no service is listening on the target port.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/connectionrefused",
        "nl": "https://delaparra-services.nl/nl/kennisbank/connectionrefused"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/connectionrefused.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/connectionrefused.md",
        "json": "https://delaparra-services.nl/knowledge-hub/connectionrefused.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/connectionrefused.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/connectionrefused.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused.csv",
            "encodingFormat": "text/csv",
            "name": "connectionrefused.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused.json",
            "encodingFormat": "application/json",
            "name": "connectionrefused.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused.md",
            "encodingFormat": "text/markdown",
            "name": "connectionrefused.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused.pdf",
            "encodingFormat": "application/pdf",
            "name": "connectionrefused.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused.zip",
            "encodingFormat": "application/zip",
            "name": "connectionrefused.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused/skills.zip",
            "encodingFormat": "application/zip",
            "name": "connectionrefused-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [ConnectionRefused](<https://delaparra-services.nl/knowledge-hub/connectionrefused>)\n\n  \n\nCategory: Error types \n\n# ConnectionRefused\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is ConnectionRefused?\n\n \n\nConnectionRefused: The attempt to connect to a server was explicitly rejected — no service is listening on the target port. Connection refused means your program reached the target machine, but nothing was listening on that port. The operating system answered immediately with a rejection. That makes it a useful clue. The network path works. The problem is the service: it is not running, it crashed, it listens on a different port, or it only listens on ` 127.0.0.1 ` while you connect from elsewhere.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about ConnectionRefused\n\n  \n\n### What should you keep in mind with ConnectionRefused?\n\n \n\nIn Docker setups, a classic cause is connecting to ` localhost ` from inside a container. Inside the container, localhost means the container itself, not your computer or the database container. Use the service name, such as ` mysql `, instead. Also check whether the service was simply still starting; databases can take several seconds, and a quick retry or a health check fixes start-up order problems.\n\n \n\n## At a glance\n\n   CategoryError types Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Error types terms\n\n \n\n- [AssertionError](<https://delaparra-services.nl/knowledge-hub/assertionerror>) \n- [AttributeError](<https://delaparra-services.nl/knowledge-hub/attributeerror>) \n- [CORSError](<https://delaparra-services.nl/knowledge-hub/corserror>) \n- [DeadlockError](<https://delaparra-services.nl/knowledge-hub/deadlockerror>) \n- [IndexOutOfBoundsException](<https://delaparra-services.nl/knowledge-hub/indexoutofboundsexception>) \n- [KeyError](<https://delaparra-services.nl/knowledge-hub/keyerror>)\n\n \n\n[All terms starting with C](<https://delaparra-services.nl/knowledge-hub#letter-c>)\n\n \n\n## Skills\n\n \n\n- ### Systematic Debugging\n\n \n\nUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes\n\n [View skill](<https://delaparra-services.nl/skills/systematic-debugging>) [Download zip](<https://delaparra-services.nl/skills/systematic-debugging/download>) \n- ### Debian Linux Triage\n\n \n\n'Triage and resolve Debian Linux issues with apt, systemd, and AppArmor-aware guidance.'\n\n [View skill](<https://delaparra-services.nl/skills/debian-linux-triage>) [Download zip](<https://delaparra-services.nl/skills/debian-linux-triage/download>) \n- ### Docker Compose Patterns\n\n \n\nUse this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.\n\n [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/connectionrefused/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Understanding common error messages](<https://delaparra-services.nl/manuals/foutmeldingen-begrijpen>) \n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)\n\n \n\n## Related services\n\n \n\n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. \n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/connectionrefused)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused",
                "name": "ConnectionRefused: Knowledge hub | DeLaParra Services",
                "description": "The attempt to connect to a server was explicitly rejected — no service is listening on the target port.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#term",
                    "name": "ConnectionRefused",
                    "description": "The attempt to connect to a server was explicitly rejected — no service is listening on the target port.",
                    "termCode": "connectionrefused",
                    "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused",
                    "inLanguage": "en",
                    "keywords": "Error types",
                    "dateModified": "2026-11-25T17:46:25+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is ConnectionRefused?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The attempt to connect to a server was explicitly rejected — no service is listening on the target port. Connection refused means your program reached the target machine, but nothing was listening on that port. The operating system answered immediately with a rejection. That makes it a useful clue. The network path works. The problem is the service: it is not running, it crashed, it listens on a different port, or it only listens on 127.0.0.1 while you connect from elsewhere."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with ConnectionRefused?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "In Docker setups, a classic cause is connecting to localhost from inside a container. Inside the container, localhost means the container itself, not your computer or the database container. Use the service name, such as mysql, instead. Also check whether the service was simply still starting; databases can take several seconds, and a quick retry or a health check fixes start-up order problems."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/systematic-debugging#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/debian-linux-triage#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-compose-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/foutmeldingen-begrijpen#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "ConnectionRefused"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#dataset",
                "name": "ConnectionRefused",
                "description": "The attempt to connect to a server was explicitly rejected — no service is listening on the target port.",
                "url": "https://delaparra-services.nl/knowledge-hub/connectionrefused",
                "identifier": "https://delaparra-services.nl/knowledge-hub/connectionrefused#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/connectionrefused#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Error types",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:25+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "connectionrefused-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/connectionrefused/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}