OpenClaw no responde en VPS de Hostinger: cómo solucionamos un problema de puertos con Docker

OpenClaw no responde en VPS de Hostinger: cómo solucionamos un problema de puertos con Docker
Openclaw -in VPS Hostinger

Instalar OpenClaw en un VPS puede parecer sencillo, pero cuando el gateway deja de responder, encontrar la causa puede tomar horas.

Esto fue exactamente lo que nos ocurrió al desplegar OpenClaw (antes Moltbot / Clawdbot) en un VPS de Hostinger usando Docker.

El contenedor funcionaba perfectamente, Docker mostraba el puerto publicado y sin embargo el servicio no era accesible desde fuera del servidor.

Después de revisar contenedores, redes y configuración del VPS, finalmente encontramos la causa: el firewall del sistema estaba bloqueando el puerto.

En este artículo explico todo el proceso de diagnóstico y la solución paso a paso.


El problema: OpenClaw funciona pero el puerto no responde

Después de instalar OpenClaw, verificamos que el contenedor estuviera corriendo.

docker ps

El resultado mostraba algo como esto:

ghcr.io/hostinger/hvps-openclaw:latest
0.0.0.0:59646->59646/tcp

Esto significa que el puerto 59646 del contenedor está expuesto en el VPS.

En teoría, deberíamos poder acceder desde cualquier navegador usando:

http://IP_DEL_SERVIDOR:59646

Pero el servicio simplemente no respondía.

No había error claro.
El navegador quedaba esperando conexión.


Paso 1: verificar que Docker esté funcionando

Lo primero fue confirmar que Docker realmente estuviera exponiendo el puerto.

docker ps

El contenedor estaba activo y el puerto correctamente mapeado.

Luego probamos acceder al servicio desde dentro del propio servidor:

curl localhost:59646

Aquí apareció una pista importante.

El servicio sí respondía internamente.

Esto significa que:

  • OpenClaw estaba funcionando
  • el contenedor estaba activo
  • el puerto estaba abierto dentro del VPS

Por lo tanto, Docker no era el problema.


Paso 2: verificar si Hostinger bloquea el puerto

El siguiente sospechoso era el proveedor del VPS.

Algunos proveedores bloquean puertos específicos o requieren reglas adicionales.

Probamos:

  • usar diferentes puertos
  • revisar la documentación de Hostinger
  • reiniciar el contenedor

Nada cambió.

El puerto seguía inaccesible desde el exterior.


Paso 3: revisar el firewall del VPS (la causa real)

Finalmente revisamos el firewall del sistema.

En muchos VPS con Ubuntu está activo UFW (Uncomplicated Firewall).

Primero verificamos su estado:

sudo ufw status

Ahí apareció el problema.

El puerto 59646 no estaba permitido.

Esto significa que Docker estaba exponiendo el puerto, pero el firewall del sistema bloqueaba el tráfico externo.


La solución: abrir el puerto en UFW

La solución fue abrir el puerto manualmente en el firewall.

sudo ufw allow 59646/tcp
sudo ufw reload

Después verificamos nuevamente:

sudo ufw status

El puerto ya aparecía como permitido.

Ahora el gateway de OpenClaw sí respondía al acceder desde el navegador:

http://IP_DEL_SERVIDOR:59646

Arquitectura final: Telegram para interacción y WhatsApp para notificaciones

Durante el proceso también tomamos una decisión importante sobre la arquitectura del sistema.

Inicialmente queríamos usar WhatsApp como canal principal de interacción con OpenClaw.

Sin embargo, la integración de WhatsApp puede ser más compleja debido a:

  • gateways externos
  • configuraciones adicionales
  • restricciones de APIs

Por eso decidimos dividir los roles.

Telegram: interacción directa con OpenClaw

Telegram funciona como el canal principal para interactuar con el agente.

Ventajas:

  • API abierta
  • bots fáciles de configurar
  • interacción rápida con el sistema

Esto permite consultas diarias y acceso directo a información.

WhatsApp: notificaciones y gestión

WhatsApp quedó como canal para:

  • notificaciones
  • avisos del curso
  • recordatorios
  • comunicaciones administrativas

Es decir, WhatsApp funciona como canal de distribución, no como interfaz de interacción con OpenClaw.


Seguridad al abrir puertos en OpenClaw

Abrir un puerto en un VPS no significa que el servicio deba quedar completamente expuesto.

Recomendaciones:

  • usar tokens de autenticación
  • evitar puertos predecibles
  • limitar IPs cuando sea posible
  • usar reverse proxy
  • considerar Cloudflare Tunnel

Por ejemplo:

gateway.auth.token=UN_TOKEN_LARGO_Y_SEGURO

Esto evita que cualquier persona pueda interactuar con el gateway.


Conclusión

Si OpenClaw está corriendo en Docker pero el puerto no responde externamente, lo más probable es que el problema esté en una de estas tres capas:

  1. Docker (puertos publicados)
  2. Firewall del sistema (UFW / iptables)
  3. Red del proveedor VPS

En nuestro caso, la causa fue simplemente una regla de firewall que bloqueaba el puerto.

Después de abrir el puerto en UFW, el gateway comenzó a funcionar correctamente.

Creo que la configuración de Openclaw todavia es un poco difusa y no esta unificada, pero ese el precio por ser early - adopter .... y bueno para el admin siempre Tailscale es mandatorio.

.

OpenClaw not responding on a Hostinger VPS: how we fixed a port problem with Docker

Installing OpenClaw on a VPS can look simple, but when the gateway stops responding, finding the cause can take hours.

That's exactly what happened to us when we deployed OpenClaw (formerly Moltbot / Clawdbot) on a Hostinger VPS using Docker.

The container was running perfectly, Docker showed the port as published, and yet the service wasn't reachable from outside the server.

After checking containers, networks, and the VPS configuration, we finally found the cause: the system firewall was blocking the port.

In this article I walk through the whole diagnosis and the fix, step by step.


The problem: OpenClaw runs, but the port doesn't respond

After installing OpenClaw, we checked that the container was running.

docker ps

The output looked something like this:

ghcr.io/hostinger/hvps-openclaw:latest
0.0.0.0:59646->59646/tcp

This means the container's port 59646 is exposed on the VPS.

In theory, we should be able to reach it from any browser using:

http://SERVER_IP:59646

But the service simply didn't respond.

No clear error.
The browser just kept waiting for a connection.


Step 1: check that Docker is working

The first thing was to confirm Docker was really exposing the port.

docker ps

The container was up and the port was correctly mapped.

Then we tried reaching the service from inside the server itself:

curl localhost:59646

That gave us an important clue.

The service did respond internally.

That means:

  • OpenClaw was working
  • the container was up
  • the port was open inside the VPS

So Docker wasn't the problem.


Step 2: check whether Hostinger blocks the port

The next suspect was the VPS provider.

Some providers block specific ports or require extra rules.

We tried:

  • using different ports
  • reading Hostinger's documentation
  • restarting the container

Nothing changed.

The port was still unreachable from outside.


Step 3: check the VPS firewall (the real cause)

Finally, we checked the system firewall.

Many Ubuntu VPSs have UFW (Uncomplicated Firewall) enabled.

First we checked its status:

sudo ufw status

There was the problem.

Port 59646 wasn't allowed.

So Docker was exposing the port, but the system firewall was blocking external traffic.


The fix: open the port in UFW

The fix was to open the port manually in the firewall.

sudo ufw allow 59646/tcp
sudo ufw reload

Then we checked again:

sudo ufw status

The port now showed as allowed.

And the OpenClaw gateway finally responded from the browser:

http://SERVER_IP:59646

Final architecture: Telegram for interaction, WhatsApp for notifications

Along the way we also made an important decision about the system's architecture.

At first we wanted to use WhatsApp as the main channel for interacting with OpenClaw.

However, the WhatsApp integration can be more complex because of:

  • external gateways
  • extra configuration
  • API restrictions

So we decided to split the roles.

Telegram: direct interaction with OpenClaw

Telegram works as the main channel to interact with the agent.

Advantages:

  • open API
  • bots that are easy to set up
  • fast interaction with the system

This allows day-to-day queries and direct access to information.

WhatsApp: notifications and management

WhatsApp became the channel for:

  • notifications
  • course announcements
  • reminders
  • administrative communications

In other words, WhatsApp works as a distribution channel, not as the interface for interacting with OpenClaw.


Security when opening ports for OpenClaw

Opening a port on a VPS doesn't mean the service should be fully exposed.

Recommendations:

  • use authentication tokens
  • avoid predictable ports
  • restrict IPs when possible
  • use a reverse proxy
  • consider Cloudflare Tunnel

For example:

gateway.auth.token=A_LONG_AND_SECURE_TOKEN

This keeps just anyone from interacting with the gateway.


Conclusion

If OpenClaw is running in Docker but the port doesn't respond from outside, the problem is most likely in one of these three layers:

  1. Docker (published ports)
  2. The system firewall (UFW / iptables)
  3. The VPS provider's network

In our case, the cause was simply a firewall rule blocking the port.

After opening the port in UFW, the gateway started working properly.

I think OpenClaw's configuration is still a bit fuzzy and not unified, but that's the price of being an early adopter... and for admin access, Tailscale is always a must.