Skip to main content
ngrok documentation home page
Search...
⌘K
ngrok Homepage
Dashboard
Search...
Navigation
Databases
Using ngrok with PostgreSQL
Start
Products
Guides
Integrations
Reference
Changelogs
Pricing
Databases
MySQL
MongoDB
PostgreSQL
Docker
Using ngrok with Docker
Docker Compose
Docker Desktop
Frameworks
FastAPI
Flask
Laravel
Protocols
SSH
FTP, FTPS, SFTP
Websockets
Real-Time Messaging Protocol (RTMP)
Web Servers
SMTP Mail Servers
NGINX
Outbound Proxies
Virtual hosts (MAMP, WAMP, etc)
gRPC
Other
CGNAT
Claude AI's MCP
GoDaddy
Google Colab
Java
Minecraft
OpenVPN Connect
Puppet
Visual Studio / IIS Express
VSCode
Databases
Using ngrok with PostgreSQL
Copy page
Copy page
After installing the database, you can connect to it using a standard ngrok TCP endpoint sending traffic to port
5432
.
Report incorrect code
Copy
ngrok
tcp
5432
TCP endpoints are only available on a free plan after
adding a valid payment method
to your account.
Once ngrok is forwarding traffic to your PostgreSQL service, you can use the TCP address provided to connect to it remotely.
Report incorrect code
Copy
psql
-h
0.tcp.ngrok.io
-p
12345
-U
postgres
-d
postgres
Was this page helpful?
Yes
No
Suggest edits
Raise issue
MongoDB
Using ngrok with Docker