Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

El error ERR_CONNECTION_REFUSED aparece cuando el navegador intenta abrir localhost:8080 y no encuentra un proceso aceptando conexiones TCP en ese puerto y dirección. La solución habitual no es borrar la caché: inicia correctamente la aplicación, confirma el puerto real y comprueba qué proceso está escuchando.

Usa primero esta dirección: http://localhost:8080/. Si no funciona, sigue el diagnóstico de abajo antes de cambiar configuraciones al azar.

Diagnóstico rápido en cinco minutos

  1. Revisa la terminal. Busca mensajes como Listening on port 8080 o Started application. Si volvió al prompt o muestra EADDRINUSE, BindException o Failed to start, el servidor no está funcionando correctamente.
  2. Comprueba quién escucha en 8080.
    Windows PowerShell:
    Get-NetTCPConnection -LocalPort 8080 -State Listen

    Alternativa: netstat -ano | findstr :8080, seguido de tasklist /FI "PID eq <PID>".
    macOS o Linux:

    Free tools Windows power users keep installed

    One-click scans. No signup required.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    lsof -nP -iTCP:8080 -sTCP:LISTEN

    También puedes usar ss -ltnp | grep ':8080'.

  3. Prueba sin el navegador.
    curl -i http://localhost:8080/

    Un 200, 301, 401, 403 o incluso 404 demuestra que hay un servidor respondiendo. Connection refused indica que no acepta conexiones en ese destino; Empty reply significa que aceptó la conexión pero cerró sin enviar una respuesta HTTP.

  4. Confirma la URL anunciada. Si la aplicación indica http://localhost:3000, abre ese puerto, no 8080.

Qué significa cada resultado

Resultado Causa probable Siguiente acción
No aparece ningún proceso Aplicación detenida, fallo de inicio o puerto diferente Inicia el proyecto y lee el primer error de la terminal
Aparece otro proceso Conflicto de puerto Detén ese servicio correctamente o cambia el puerto
Responde la aplicación correcta Ruta, protocolo, IPv4/IPv6, proxy o navegador Prueba con curl y revisa la URL exacta
404 Not Found El servidor está activo, pero esa ruta no existe Corrige la ruta de la aplicación
ERR_CONNECTION_TIMED_OUT La conexión no recibe respuesta Investiga firewall, red o dirección IP
502 Bad Gateway Un proxy no alcanza al backend Revisa el upstream y los puertos internos

Si la aplicación no escucha en 8080

Iníciala con el comando propio del proyecto y corrige el error que aparezca:

#1 Best Overall
Sale
TP-Link USB to Ethernet Adapter,Support Nintendo Switch,1Gbps,Plug and Play
  • 𝐇𝐢𝐠𝐡-𝐒𝐩𝐞𝐞𝐝 𝐔𝐒𝐁 𝐄𝐭𝐡𝐞𝐫𝐧𝐞𝐭 𝐀𝐝𝐚𝐩𝐭𝐞𝐫 - UE306 is a USB 3.0 Type-A to RJ45 Ethernet adapter that adds a reliable wired network port to your laptop, tablet, or Ultrabook. It delivers fast and stable 10/100/1000 Mbps wired connections to your computer or tablet via a router or network switch, making it ideal for file transfers, HD video streaming, online gaming, and video conferencing.
  • 𝐔𝐒𝐁 𝟑.𝟎 𝐟𝐨𝐫 𝐅𝐚𝐬𝐭𝐞𝐫, 𝐌𝐨𝐫𝐞 𝐒𝐭𝐚𝐛𝐥𝐞 𝐃𝐚𝐭𝐚 𝐓𝐫𝐚𝐧𝐬𝐟𝐞𝐫𝐬- Powered via USB 3.0, this adapter provides high-speed Gigabit Ethernet without the need for external power(10/100/1000Mbps). Backward compatible with USB 2.0/1.1, it ensures reliable performance across a wide range of devices.
  • 𝐒𝐮𝐩𝐩𝐨𝐫𝐭𝐬 𝐍𝐢𝐧𝐭𝐞𝐧𝐝𝐨 𝐒𝐰𝐢𝐭𝐜𝐡- Easily connect your Nintendo Switch to a wired network for faster downloads and a more stable online gaming experience compared to Wi-Fi.
  • 𝐏𝐥𝐮𝐠 𝐚𝐧𝐝 𝐏𝐥𝐚𝐲- No driver required for Nintendo Switch, Windows 11/10/8.1/8, and Linux. Simply connect and enjoy instant wired internet access without complicated setup.
  • 𝐁𝐫𝐨𝐚𝐝 𝐃𝐞𝐯𝐢𝐜𝐞 𝐂𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲- Supports Nintendo Switch, PCs, laptops, Ultrabooks, tablets, and other USB-powered web devices; works with network equipment including modems, routers, and switches.
npm install
npm run dev
npm start
python -m http.server 8080
./mvnw spring-boot:run
docker compose up

Estos comandos son ejemplos, no una receta universal. Una dependencia ausente, una versión incompatible de Node, Java o Python, una variable de entorno incorrecta, una base de datos inaccesible, una migración pendiente o un certificado TLS faltante puede hacer que el proceso termine inmediatamente. En Docker, consulta docker ps -a y docker logs <contenedor>.

La aplicación usa otro puerto

Busca el valor en la salida de inicio, package.json, .env, la configuración del IDE, docker-compose.yml o los archivos del framework. Ejemplos habituales:

server.port=8081
server:
  port: 8081
PORT=8081 npm start

Spring Boot permite configurar puerto y dirección mediante sus propiedades; consulta la documentación de la versión usada por tu proyecto. Cambiar solo la URL del navegador no cambia el puerto del servidor.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

El puerto 8080 está ocupado

Un mensaje EADDRINUSE significa que otro proceso ya utiliza el puerto solicitado (documentación de Node.js). Detén el servicio desde su propio IDE, gestor o servicio cuando sea posible.

Rank #2
Amazon Basics USB 3.0 to 10/100/1000 Gigabit Ethernet Internet Adapter, Compatible with Windows and macOS, Black
  • Connects a USB 3.0 device (computer/laptop) to a router, modem, or network switch to deliver Gigabit Ethernet to your network connection. Does not support Smart TV or gaming consoles (e.g.Nintendo Switch).
  • Supported features include Wake-on-LAN function, Green Ethernet & IEEE 802.3az-2010 (Energy Efficient Ethernet)
  • Supports IPv4/IPv6 pack Checksum Offload Engine (COE) to reduce Cental Processing Unit (CPU) loading
  • Compatible with Windows 8.1 or higher, Mac OS

Si necesitas identificarlo y no puedes detenerlo de otra forma:

# Windows
Stop-Process -Id <PID>
# último recurso
taskkill /PID <PID> /F
# macOS/Linux
kill <PID>
# último recurso
kill -9 <PID>

Matar un proceso puede cerrar otra aplicación o perder trabajo. Como alternativa, cambia tu aplicación a 8081 y actualiza clientes, variables de entorno, proxy y documentación.

Comprueba IPv4, IPv6 y la dirección de escucha

Prueba estas variantes:

http://127.0.0.1:8080/
http://[::1]:8080/
https://localhost:8080/

Si funciona 127.0.0.1 pero no localhost, puede existir una diferencia de resolución o de enlace IPv4/IPv6. 0.0.0.0 es una dirección de escucha que representa todas las interfaces IPv4; no es normalmente una dirección que debas escribir en el navegador.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Para desarrollo exclusivamente local, 127.0.0.1 limita el acceso. Para contenedores o acceso desde otra máquina suele ser necesario escuchar en 0.0.0.0, por ejemplo:

Rank #3
USB A/C to Ethernet Adapter, 3xUSB3.0 and 1000M RJ45 Network hub for Laptop
  • [Expansion Ports] The USB C to Ethernet Adapter expands the device to three USB 3.0 ports and one Gigabit Ethernet port. Provides you more peripheral ports while maintaining a stable network connection, plug and play, no driver required.
  • [Gigabit Network Port] ALL-LUCKY USB Ethernet Adapter transmission rate up to 1000Mbps, also compatible with 10/100Mbps bandwidth. It allows you to enjoy a smooth and stable network connection and avoid too much lag. (Note: To reach 1Gbps, please use CAT6 or above Ethernet cable connection)
  • [Convertible Connector]This usb hub with ethernet not only has USB-A connector, but also can be converted to USB-C connector, so that you can easily convert the connector according to the device port, improve the convenience of use.
  • [High-Speed Data Transfer] The usb to ethernet adapter adopts USB 3.0 transmission technology, supports up to 5Gbps transmission rate, and is compatible with USB 2.0(480Gbps),USB 1.0(12Mbps), easily transfer video, files and other data for you in seconds. (Note: Maximum output current is 900mA, does not support charging devices.)
  • [Widely Compatible]The usb c ethernet adapter for iMac, MacBook Pro, iPad Pro, XPS and many other devices. Compatible with Windows 11/10/8.1/8, Mac OS, iPad OS, Chrome OS.(Note: Driver is required on Win 7) It can be used in office, school, library and other occasions, compact and portable, easy to carry around.
app.listen(8080, '0.0.0.0', () => {
  console.log('Servidor en http://localhost:8080');
});

Escuchar en todas las interfaces puede exponer el servicio a tu red; aplica autenticación y reglas de firewall adecuadas. Node explica el comportamiento de server.listen() y cómo verificar la dirección real con server.address() en su documentación de red.

Docker y Docker Compose

En Docker, localhost del navegador es el host, mientras que localhost dentro del contenedor es el propio contenedor. El formato de publicación es:

-p PUERTO_DEL_HOST:PUERTO_DEL_CONTENEDOR
docker run --rm -p 8080:80 nginx

En este ejemplo navegas a http://localhost:8080, aunque Nginx escucha en el puerto 80 dentro del contenedor. Si la aplicación interna escucha en 8080:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
docker run --rm -p 8080:8080 mi-aplicacion

Comprueba el mapeo y los registros:

docker ps
docker port <nombre-o-id>
docker logs --tail 100 <nombre-o-id>

En Compose:

services:
  app:
    ports:
      - "8080:8080"

El proceso dentro del contenedor debe escuchar en una dirección accesible desde fuera, normalmente 0.0.0.0, y el puerto debe estar publicado. Docker documenta el mapeo de puertos y sus implicaciones de exposición. Desde un contenedor hacia un servicio del host, Docker Desktop recomienda host.docker.internal, no localhost (FAQ de Docker Desktop).

Rank #4
Anker USB C to Ethernet Adapter, Portable 1 Gbps Network Hub
  • The Anker Advantage: Join the 65 million+ powered by our leading technology.
  • Instant Internet: Connect to the internet instantly from virtually any USB-C 3.0 device, and enjoy stable connection speeds of up to 1 Gbps.
  • Lightweight and Compact: The space-saving and portable design measures just over half an inch thick and weighs about the same as a AA battery.
  • Premium Build: Features a sleek aluminum exterior and braided-nylon cable to complement the design of high-end devices.
  • What You Get: PowerExpand USB-C to Gigabit Ethernet Adapter, welcome guide, 18-month worry-free warranty, and friendly customer service.

Apache, XAMPP, Nginx e IIS Express

En Apache, Listen determina la dirección y el puerto atendidos:

Listen 8080
# o
Listen 127.0.0.1:8080

Un VirtualHost para un puerto que Apache no escucha no funcionará. Directivas Listen duplicadas o solapadas pueden impedir el arranque. Revisa error.log en busca de could not bind o Address already in use; consulta la documentación de Apache sobre enlaces.

En XAMPP utiliza el panel de logs de Apache. En IIS Express comprueba el perfil seleccionado, la URL del proyecto, applicationhost.config y las reservas URL. Microsoft documenta los fallos de enlace y netsh http add urlacl en su guía de IIS Express. No ejecutes Visual Studio como administrador permanentemente para ocultar una configuración incorrecta.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

HTTP, HTTPS, proxy, VPN y firewall

No asumas que 8080 usa HTTPS. Prueba http:// y solo usa https:// si el servidor está configurado con TLS. HTTP y HTTPS requieren configuraciones distintas (FAQ de SSL de Apache).

Best Value
Sale
BENFEI USB 3.0 to Ethernet Adapter, USB C to RJ45 Gigabit LAN (1000Mbps) Network Adapter, Compatible with MacBook/Pro/Air, Surface Pro, Windows 11/10/8/7, Mac OS [Aluminium Shell&Nylon Cable]
  • COMPACT DESIGN - The compact-designed portable BENFEI USB A/C to Ethernet adapter connects your computer or tablet to a router,modem or network switch for network connection. It adds a standard RJ45 port to your Ultrabook, notebook or Macbook Air for file transferring, video conferencing, gaming, and HD video streaming.
  • SUPERIOR STABILITY - Built-in advanced IC chip works as the bridge between RJ45 Ethernet cable and your USB A/C devices. The driver-free installation with native driver support in Chrome, Mac, and Windows OS; The USB A/C Ethernet adapter dongle supports important performance features including Wake-on-Lan (WoL), Full-Duplex (FDX) and Half-Duplex (HDX) Ethernet, Crossover Detection, Backpressure Routing, Auto-Correction (Auto MDIX).
  • INCREDIBLE PERFORMANCE - Supports full 10/100/1000Mbps gigabit ethernet performance over USB A/C's 5Gbps bus, faster and more reliable than most wireless connections. Link and Activity LEDs. USB powered, no external power required. Backward compatible with USB 2.0/1.1.✅ To reach 1Gbps, make sure to use CAT6 & up Ethernet cables.
  • BROAD COMPATIBILITY - The USB A/C-Ethernet adapter is compatible with Windows 11/10/8.1/8/7/Vista/XP, Mac OSX 10.6/10.7/10.8/10.9/10.10/10.11/10.12, Linux kernel 3.x/2.6, Android and Chrome OS.Compatible with IEEE 802.3, IEEE 802.3u and IEEE 802.3ab. Supports IEEE 802.3az (Energy Efficient Ethernet).❌Do Not Support Windows RT. (NOT compatible with Nintendo Switch.)
  • 18 MONTH WARRANTY - Exclusive BENFEI Unconditional 18-month Warranty ensures long-time satisfaction of your purchase; Friendly and easy-to-reach customer service to solve your problems timely.

Para una conexión en la misma máquina, el firewall rara vez es la primera hipótesis. Primero demuestra que existe un proceso con curl o Test-NetConnection localhost -Port 8080. Investiga proxy o VPN si curl funciona pero el navegador no, o si aparece un error de proxy. Excluye localhost y 127.0.0.1 del proxy cuando corresponda.

Si accedes desde otro equipo, no uses localhost: usa la IP del servidor, escucha en 0.0.0.0 y permite TCP 8080 solo con una regla de firewall necesaria. Abrir un puerto no crea un servidor si ningún proceso está escuchando, y no conviene desactivar permanentemente el firewall, antivirus o VPN.

Reinicio ordenado y datos que debes recopilar

  1. Detén la aplicación o contenedor.
  2. Confirma que 8080 quedó libre.
  3. Corrige el error de inicio o el mapeo de puertos.
  4. Inicia de nuevo y prueba con curl.
  5. Vuelve al navegador con la URL y protocolo exactos.

Si sigue fallando, anota el sistema operativo, tecnología, comando de inicio, salida completa de la terminal, resultado de curl -i http://localhost:8080/, comando de escucha, si accedes localmente o desde otro dispositivo y cualquier cambio reciente de puerto, Docker, VPN o dependencias. Reiniciar todo el equipo puede liberar un proceso atascado, pero debe ser el último recurso, no el diagnóstico.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

¿Borrar la caché del navegador arregla ERR_CONNECTION_REFUSED?

Normalmente no. El rechazo ocurre antes de que el navegador reciba una respuesta HTTP; comprueba primero el proceso y el puerto con curl o una herramienta TCP.

¿Qué significa que localhost devuelva 404?

Significa que sí hay un servidor activo en ese puerto, pero la ruta solicitada no existe. Corrige la URL o las rutas de la aplicación.

¿Puedo abrir 0.0.0.0:8080 en el navegador?

No suele ser necesario. 0.0.0.0 es una dirección de escucha que representa todas las interfaces IPv4; navega usando localhost, 127.0.0.1 o la IP concreta del equipo.

The Bottom Line

La regla decisiva es: primero demuestra que existe un proceso escuchando en la dirección y el puerto correctos. Después corrige protocolo, enlace IPv4/IPv6, mapeo de Docker, proxy o firewall según el resultado.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.