Access a port by adding it to the config.yml to access a service on localhost

Adding a port to the config.yml to access a service

I have an http webserver running in my home which is exposed via Cloudflared to the internet via it’s domain name.

The config.yml is like this ( sorry but I was not allowed to post this as text - due to it having urls in it )

pic 2024-02-05 at 17.12.47

I would like to be able to use a public port 3050 remotely to gain access to a sevice that is running locally on my server at local:3050/api/service/’

eg calling domain:3050/api/service/

Any help would be lovely - thanks.

I am on the Free Cloudflare account - this is just a personal project for a friend.


I have solved my issue - I have cut and pasted how I did it - because I asked somewhere else as well.

I wanted to access an express node service which was running on web server in my house which was exposed to the web via Cloudflared.
I think a Chuck video inspired me to do this ( but I’m not sure it was for a website ).

Anyway in Cloudflared Zero Trust >> Tunnels >> Public HostName, I added a new public hostname.

Subdomain : “update”
Hostname :
Path : left blank

Type : “http”

So when I call

Sorry ( this forum does not allow links despite this being fake )

…it ¿ redirects ? to my local server ( local to me - in my house ), and accesses the already running nodejs express service running on Port 3050.
http:// : 3050 / api / brozone
Sorry ( this forum does not allow links despite this being fake )

The domain has been changed to stop you thrashing my api :slight_smile:

I hope this helps someone.

The Cloudflare UI keeps changing ! Which is always a pain when you watch a tutorial that’s older than 6 months old.

It does, just not for new members. That permission is earned over time by contributing.

A quick :search: for ports will reveal the short answer - port 3050 is not an option. More details here, Network ports · Cloudflare Fundamentals docs


  • 80
  • 8080
  • 8880
  • 2052
  • 2082
  • 2086
  • 2095


  • 443
  • 2053
  • 2083
  • 2087
  • 2096
  • 8443

Can you share a link to that tutorial? If it’s a cf video, I’ll point the team towards it to update. The team regularly works to ensure docs match the dash, and you’re right, the dash team continues to grow, expand and improve the dash with new capabilities.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.