HttpRafa / modflared

Automatically connects you to a Cloudflare tunnel without having to install cloudflared separately.
MIT License
39 stars 6 forks source link

cant get it to work 😢 #46

Open CMD-user opened 1 month ago

CMD-user commented 1 month ago

hi, first I just wanna say that I'm new to this type of stuff so bear with me pls.

Describe the bug Trying to setup cloudflare tunnel but just doesn't work

Which version of the mod/game are you using? Fabric 1.21

Expected behavior I set up a Cloudflare Tunnel using cloudflared so that others can connect to my Minecraft server. My plan was to make the server accessible through the tunnel, and I expected to connect to it using 127.0.0.1:25565 from my local machine

When I tried to connect using 127.0.0.1:25565, I got a "connection refused getsockopt" error.

Screenshots Connecting with 127.0.0.1: image

Connecting through domain: image

Cloudflare dns settings: image

image

image

image

Additional context I'm running the server with pterodactyl and I put the ip as 127.0.0.1:25565 cant connect through that exact ip but I can connect to it with my servers internal ip (might not be useful information but I'll include it anyway sorry)

And no ports are forwarded hopefully this isnt an issue

CMD-user commented 1 month ago

New error connecting through 127.0.0.1: image

image

HttpRafa commented 1 month ago

hi, first I just wanna say that I'm new to this type of stuff so bear with me pls.

Describe the bug Trying to setup cloudflare tunnel but just doesn't work

Which version of the mod/game are you using? Fabric 1.21

Expected behavior I set up a Cloudflare Tunnel using cloudflared so that others can connect to my Minecraft server. My plan was to make the server accessible through the tunnel, and I expected to connect to it using 127.0.0.1:25565 from my local machine

When I tried to connect using 127.0.0.1:25565, I got a "connection refused getsockopt" error.

Screenshots Connecting with 127.0.0.1: image

Connecting through domain: image

Cloudflare dns settings: image

image

image

image

Additional context I'm running the server with pterodactyl and I put the ip as 127.0.0.1:25565 cant connect through that exact ip but I can connect to it with my servers internal ip (might not be useful information but I'll include it anyway sorry)

And no ports are forwarded hopefully this isnt an issue

As I understand it, the server is managed by the Pterodactyl Wing and you have cloudflared set up outside of the Docker container. If that's the case, try the local IP(192.168.0.[0-..] of your server instead of 127.0.0.1 or local host. In my experience, localhost and Docker don't like each other very much.