Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Error 1033 Cloudflare

Error 1033 Cloudflare

Scheduled Pinned Locked Moved Selfhosted
15 Posts 6 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cutebc24@piefed.socialC This user is from outside of this forum
    cutebc24@piefed.socialC This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    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"

    S R 3dcadmin@lemmy.relayeasy.com3 L 4 Replies Last reply
    3
    • cutebc24@piefed.socialC [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"

      S This user is from outside of this forum
      S This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      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.

      cutebc24@piefed.socialC 1 Reply Last reply
      0
      • S [email protected]

        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.

        cutebc24@piefed.socialC This user is from outside of this forum
        cutebc24@piefed.socialC This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

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

        S 1 Reply Last reply
        0
        • cutebc24@piefed.socialC [email protected]

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

          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          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.

          R 1 Reply Last reply
          0
          • cutebc24@piefed.socialC [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"

            R This user is from outside of this forum
            R This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            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?

            L 1 Reply Last reply
            2
            • cutebc24@piefed.socialC [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"

              3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
              3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

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

              L vegancheesecake@lemmy.blahaj.zoneV 2 Replies Last reply
              1
              • 3dcadmin@lemmy.relayeasy.com3 [email protected]

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

                L This user is from outside of this forum
                L This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                Failure to connect, still. Odd.

                1 Reply Last reply
                0
                • R [email protected]

                  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?

                  L This user is from outside of this forum
                  L This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

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

                  S R 3dcadmin@lemmy.relayeasy.com3 3 Replies Last reply
                  0
                  • cutebc24@piefed.socialC [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"

                    L This user is from outside of this forum
                    L This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #9

                    I'm gonna try just making it a local instance

                    1 Reply Last reply
                    0
                    • S [email protected]

                      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.

                      R This user is from outside of this forum
                      R This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #10

                      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/

                      • Have you gotten to the authentication step?

                      • What do the logs say?
                        https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/troubleshoot-tunnels/diag-logs/

                      1 Reply Last reply
                      0
                      • L [email protected]

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

                        S This user is from outside of this forum
                        S This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #11

                        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.

                        1 Reply Last reply
                        1
                        • L [email protected]

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

                          R This user is from outside of this forum
                          R This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #12

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

                          L 1 Reply Last reply
                          1
                          • R [email protected]

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

                            L This user is from outside of this forum
                            L This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #13

                            Correct, same computer

                            1 Reply Last reply
                            0
                            • L [email protected]

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

                              3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
                              3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #14

                              Cloudflare and yunohost user here. Need to install the cloudflared service and make sure it runs and the tunnel connects in the zero trust dashboard. Will say healthy when it does. Try a lower port number, something in the 2000-3000 range is good to test. Then in the correct tunnel once it is showing healthy you need to add a public hostname (for ease of use). Say lemmy.mydomain.com, use https then localhost:portnumber/ Then in additional settings you have to turn on notlsverify else it won't work. That should get it working. To be honest I've not bothered setting up various ports other than the defaults so you shouldn't need to set up the port so just try https and localhost and that should do the trick - this could be where you are going wrong as yunohost doesn't explicity need the port setting in most common configurations. Then in the yunohost admin area you can go into applications and open the app and it should work. Any probs give us a shout

                              1 Reply Last reply
                              1
                              • 3dcadmin@lemmy.relayeasy.com3 [email protected]

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

                                vegancheesecake@lemmy.blahaj.zoneV This user is from outside of this forum
                                vegancheesecake@lemmy.blahaj.zoneV This user is from outside of this forum
                                [email protected]
                                wrote last edited by [email protected]
                                #15

                                I presume they mean pointing their cloudflare tunnel to direct lemmy.example.com to http://localhost/:[port], and I don't think there's any special rules about that port from cloudflares site.

                                I use tunnels and ports in about that range for all my sites, and don't have any problems.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups