© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
16 replies
yash2843

Cloudflared Tunnel: Tunneling for custom ports

Can anyone please help me to understand, how can I expose custom ports(for example port 5432) or protocol(for example udp) on cloudflared tunnel?

I have tried to expose my database on the tunnel, so that other services can also access it. For this, I have:
Create a public hostname(say db.example.com) on the tunnel
Point the hostname to the service:
Type: TCP
URL: localhost:5432

Now, I'm trying to access the database using a client, but I'm getting a connection timed out error
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

tunnel cloudflared
Cloudflare DevelopersCDCloudflare Developers / general-help
17mo ago
Cloudflared tunnel for main domain
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Cloudflared tunnel problems
Cloudflare DevelopersCDCloudflare Developers / general-help
10mo ago
Cloudflared Tunnel, SSL?
Cloudflare DevelopersCDCloudflare Developers / general-help
11mo ago