14
Error 1033 Cloudflare (piefed.social)
submitted 1 day ago by [email protected] to c/[email protected]

I don't know what to do, I'm experimenting with creating a Lemmy instance. it's listening on port 8536 but cloudflare won't respond and connect and while i connected the tunnel to the instance, i can't figure out the error or how to make it connect to the server.

"Failed to connect to localhost port 8536 after 0 ms: Couldn't connect to server"

top 18 comments
sorted by: hot top new old
[-] [email protected] 1 points 8 hours ago

Are you pointing cloudflare directly to Lemmy? I have mine going from cloudflare to Nginx Proxy Manager configured to serve Lemmy.

There is some additional configuration necessary for a reverse proxy in front of Lemmy, which is potentially where things are getting messed up for you?

[-] [email protected] 1 points 5 hours ago

Cloudflare tunnels support higher port numbers. I've done it in the past with Portainer. Also Proxmox which listens on 8006. Portainer on 9443.

[-] [email protected] 1 points 4 hours ago

I don't doubt that, I'm saying this more because there are additional routes that i had to configure in NPM to get lemmy working properly. This may be where OP is having issues, you can probably set them up in CF too but I have no idea.

[-] [email protected] 5 points 19 hours ago

Cloudflare won't connect to a port number that high. Drop it down to say 2536 and you will be fine

[-] [email protected] 1 points 16 hours ago

Failure to connect, still. Odd.

[-] [email protected] 1 points 16 hours ago

I'm gonna try just making it a local instance

[-] [email protected] 3 points 1 day ago

Wait, failure to connect to local host? That's your own computer, whatever endpoint isn't going through cloud flare. Most apps respond to ports 80/443. You need to either route those to your computer, or in docker route whatever port you want it on to your app. If you have just one app/website, you can do 80/443 universally to the app. If you have more than one, route them to a reverse proxy that can take a domain or sub-domain name and route them to the ports your apps are on.

But yeah, you really need to provide more info.

What's your environment? What's your config, setup, etc?

[-] [email protected] 1 points 16 hours ago

I used Cloudflare tunnels and YunoHost. It won't connect and it won't listen to any port

[-] [email protected] 3 points 14 hours ago

Yeah, YunoHost explains why http://localhost:8536/ wouldn't be working. If cloudflared and Lemmy are in separate containers you have to put an actual IP in, since localhost points to the container itself.

[-] [email protected] 2 points 14 hours ago

You're running these commands on the same machine as yunohost, right, not from another computer?

[-] [email protected] 1 points 13 hours ago

Correct, same computer

[-] [email protected] 8 points 1 day ago

Hey bro. I'm just a FNG here, but I've found that the more detail you can give, the better the results (answers) will be. However, two sentences about a Cloudfare error is probably not going to garner much interest. People here I've found, are willing to help, but they can't guess what it is you're talking about.

Kind Regards

[-] [email protected] 3 points 1 day ago

Can you access it without Cloudflare?

Does curl http://localhost:8536/ work?

You are using cloudflared right? Because normal (non-cloudflared) Cloudflare doesn't support port 8536.

[-] [email protected] 2 points 1 day ago

Cloudflared, yes. "curl: (7) Failed to connect to localhost port 8536 after 0 ms: Couldn't connect to server"

[-] [email protected] 3 points 1 day ago* (last edited 1 day ago)

What's the URL you using to access it without Cloudflare?

Edit: Also that curl tells me it's not listening on that IP/port.

[-] [email protected] 1 points 15 hours ago

To add: (I'm just going down the checklist here https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/)

  • Can you show us that cloudflared is actually running. I wanna see it
  • Does your firewall allow the connection

Here's the troubleshooting page
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/troubleshoot-tunnels/

[-] [email protected] 2 points 1 day ago
[-] [email protected] 1 points 1 day ago

How are you accessing it without Cloudflare? How do you know that Lemmy is actually listening?

this post was submitted on 07 Jul 2025
14 points (88.9% liked)

Selfhosted

49219 readers
440 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS