It s not working for me and I have

It's not working for me and I have cloudflared
26 Replies
Cyb3r-Jak3
Cyb3r-Jak33y ago
How are you connecting from the client?
ْكِج
ْكِجOP3y ago
ERR error="dial tcp ip:25565: connectex: No connection could be made because the target machine actively refused it."
ERR error="dial tcp ip:25565: connectex: No connection could be made because the target machine actively refused it."
2022-12-24T13:53:34Z ERR failed to connect to origin error="websocket: bad handshake" originURL=https://mc.furycommunity.com
2022-12-24T13:53:34Z ERR failed to connect to origin error="websocket: bad handshake" originURL=https://mc.furycommunity.com
Cyb3r-Jak3
Cyb3r-Jak33y ago
If this is an error from the server then your minecraft server isn't running on that port
ْكِج
ْكِجOP3y ago
25565? the server is running on port 25565
ْكِج
ْكِجOP3y ago
ْكِج
ْكِجOP3y ago
But can't connect using the tunnel
Cyb3r-Jak3
Cyb3r-Jak33y ago
What cloudflared instance is that error from? The server side cloudflared or the client cloudflared?
ْكِج
ْكِجOP3y ago
client side server
Cyb3r-Jak3
Cyb3r-Jak33y ago
So client side you need cloudflared access tcp --hostname mc.furycommunity.com --url localhost:9210 then from minecraft you add localhost:9210 as the server
ْكِج
ْكِجOP3y ago
I did that
2022-12-24T13:58:20Z ERR failed to connect to origin error="websocket: bad handshake" originURL=https://mc.furycommunity.com
2022-12-24T13:58:20Z ERR failed to connect to origin error="websocket: bad handshake" originURL=https://mc.furycommunity.com
this is what I get when I run cloudflared access tcp --hostname mc.furycommunity.com --url localhost:9210 and try to connect to the server This is what it says on serverside:
2022-12-24T13:58:17Z ERR Request failed error="dial tcp ip:25565: connectex: No connection could be made because the target machine actively refused it."
2022-12-24T13:58:17Z ERR Request failed error="dial tcp ip:25565: connectex: No connection could be made because the target machine actively refused it."
I don't know what it means by actively refused it
Cyb3r-Jak3
Cyb3r-Jak33y ago
It means the connection to <ip>:25565 was refused by the server
ْكِج
ْكِجOP3y ago
Even tho I did everything that guide said Is there a way to fix this problem? I'm trying to get around CG-NAT and this seemed to be the best way to do it
Cyb3r-Jak3
Cyb3r-Jak33y ago
From the server side cloudflared, I would check if other services are able to access the minecraft server port
ْكِج
ْكِجOP3y ago
other services like what?
Cyb3r-Jak3
Cyb3r-Jak33y ago
If possible can a minecraft client connect directly to it from localhost or use something like nc to check the port
ْكِج
ْكِجOP3y ago
Yes I'm connected to it now On the server I have minecraft client up to check if the server is running It works when I connect using localhost:25565 But when I use the cloudflared to test it It won't work
Cyb3r-Jak3
Cyb3r-Jak33y ago
Have you tried using localhost with cloudflared to connect?
ْكِج
ْكِجOP3y ago
localhost as in the config file?
Cyb3r-Jak3
Cyb3r-Jak33y ago
ingress:
- hostname: mc.furycommunity.com
service: tcp://localhost:25565

- service: http_status:404
ingress:
- hostname: mc.furycommunity.com
service: tcp://localhost:25565

- service: http_status:404
Yeah
ْكِج
ْكِجOP3y ago
Yep did that and then changed it to my ip to see if it will work Changed it back to localhost and it's working now! All I had to do is update the config I think ty bro
Cyb3r-Jak3
Cyb3r-Jak33y ago
Sweet
ْكِج
ْكِجOP3y ago
one more question The ping is very high, is there a way to fix that?
Cyb3r-Jak3
Cyb3r-Jak33y ago
Not really. It all depends on how the ISPs route the traffic between Cloudflare
ْكِج
ْكِجOP3y ago
Is it possible to make the tunnel use cloudflare datacenter in EU instead of US if they have any there?
zegevlier
zegevlier3y ago
Cloudflared will automatically use the closest datacetners there are, depending on your IPSs routing.
ْكِج
ْكِجOP3y ago
Alright. Thank you guys

Did you find this page helpful?