Túneis TCP
Exponha PostgreSQL, Redis, SSH ou qualquer serviço TCP temporariamente com rl-tunnel tcp.
1 min de leitura
Nem tudo fala HTTP. Um túnel TCP encaminha conexões brutas, ideal para dar a outro desenvolvedor acesso temporário ao seu PostgreSQL local. Túneis TCP exigem uma conta gratuita (rl-tunnel auth login).
terminal
rl-tunnel tcp 5432saída
Tunnel Status: ● OnlineForwarding: tcp://tcp-xyz.t.resolvelabs.com.br:21874 -> localhost:5432Conectando
Compartilhe o host e a porta com o outro desenvolvedor. Ele conecta com qualquer cliente padrão:
terminal
# The other dev connects with any Postgres clientpsql "postgresql://user:pass@tcp-xyz.t.resolvelabs.com.br:21874/mydb"Portas comuns
| Serviço | Comando |
|---|---|
| PostgreSQL | rl-tunnel tcp 5432 |
| MySQL | rl-tunnel tcp 3306 |
| Redis | rl-tunnel tcp 6379 |
| SSH | rl-tunnel tcp 22 |