php
php
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Yes, I'm glad it turned out to be a simple fix. I'm also relieved to know that the general steps I followed were correct. Cloudflare's public documentation is really clear and helpful. And yes, I’ll remember that casually using localhost can be risky. Thank you so much for your help.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
@Chaika Thank you so much!
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
I was able to connect after changing from localhost to 127.0.0.1.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
I can connect
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
OMNG
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
No description
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Yes, I’m editing /etc/cloudflared/config.yml.
root@minecraft-server:~# cat /etc/cloudflared/config.yml
tunnel: 7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e
credentials-file: /etc/cloudflared/7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e.json
ingress:
- hostname: ssh.gameserver.kyoto
service: ssh://localhost:22

- hostname: minecraft.gameserver.kyoto
service: tcp://localhost:25565

- hostname: grafana.gameserver.kyoto
service: http://localhost:3000

- service: http_status:404
root@minecraft-server:~# cat /etc/cloudflared/config.yml
tunnel: 7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e
credentials-file: /etc/cloudflared/7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e.json
ingress:
- hostname: ssh.gameserver.kyoto
service: ssh://localhost:22

- hostname: minecraft.gameserver.kyoto
service: tcp://localhost:25565

- hostname: grafana.gameserver.kyoto
service: http://localhost:3000

- service: http_status:404
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
This is journalctl -u cloudflared -f --lines=100 command result.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Should the cf-access-token be masked?
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
There are no logs recorded for the connection from Minecraft or the command Test-NetConnection -ComputerName minecraft.gameserver.tokyo -Port 25565.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Logs were only recorded when running Test-NetConnection -ComputerName localhost -Port 25555.
PS C:\Users\php> cloudflared access tcp --hostname minecraft.gameserver.kyoto --url localhost:25555 --log-level debug 2025-05-03T04:52:26Z INF Start Websocket listener host=localhost:25555 2025-05-03T04:52:45Z DBG Websocket request: GET / HTTP/1.1 Host: minecraft.gameserver.kyoto User-Agent: cloudflared/2025.4.0 2025-05-03T04:52:47Z DBG Access Websocket request: GET / HTTP/1.1 Host: minecraft.gameserver.kyoto Cf-Access-Token: xxx User-Agent: cloudflared/2025.4.0 2025-05-03T04:52:47Z DBG Websocket response: "HTTP/1.1 101 Switching Protocols\r\nAlt-Svc: h3=":443"; ma=86400\r\nCf-Cache-Status: DYNAMIC\r\nCf-Ray: 939d26a51c8d7379-NRT\r\nConnection: upgrade\r\nDate: Sat, 03 May 2025 04:52:47 GMT\r\nNel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}\r\nReport-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=XroVVHeeWBZKa%2FsHDtuf7Lk78WZQQ85y%2FxWh5h8ZSuVwFOQo%2Fm%2Bt4%2Fs4KXBFHH7KqiGoGC1s2heXuI%2Fn0aU%2FNleTzasUzfqq8gHmJJAUMeLzedIlHyx%2BOhp%2BznDOQycXJFRsEQTeX%2Fluujn4oQ%3D%3D"}],"group":"cf-nel","max_age":604800}\r\nSec-Websocket-Accept: +LjxgHHNH8hpe2MH2pWIi7uvf/k=\r\nServer: cloudflare\r\nServer-Timing: cfL4;desc="?proto=TCP&rtt=2644&min_rtt=2640&rtt_var=999&sent=5&recv=6&lost=0&retrans=0&sent_bytes=3109&recv_bytes=1469&delivery_rate=1634938&cwnd=252&unsent_bytes=0&cid=bea82eddf03a812f&ts=50&x=0"\r\nUpgrade: websocket\r\n\r\n" 2025-05-03T04:52:47Z DBG downstream->upstream copy: read tcp 192.168.0.60:59357->104.21.53.89:443: use of closed network connection
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Thank you. After running the access tcp command on the client machine, I tried connecting from Minecraft to localhost:25555 multiple times, but no logs were output.
PS C:\Users\php> cloudflared access tcp --hostname minecraft.gameserver.kyoto--url localhost:25555 2025-05-02T19:50:34Z INF Start Websocket listener host=localhost:25555
By the way, running the Test-NetConnection command from the client machine also does not produce any logs.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Understood. I’ll provide the output from the command as-is, with only the domain changed. Should the access tcp command be run on the server machine or the client machine? If there’s any documentation for this process, I’d appreciate it if you could share it so I can follow along.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Yes, it's a dummy. This is my first time posting to this open community, so I'm using a fake domain. If the real domain is needed, I can provide it by DM.
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
No description
32 replies
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Thank you for your reply. I'm sorry for the lack of explanation. Between steps 8 and 9, I performed the following actions on the client machine: On the client machine, I started the tunnel:
PS C:\Users\php> cloudflared access tcp --hostname minecraft.gameserver.kyoto --url localhost:25555 2025-05-02T19:50:34Z INF Start Websocket listener host=localhost:25555
Step 9: Testing from within the local network on a different PC
PS C:\Users\php> Test-NetConnection -ComputerName minecraft.gameserver.kyoto -Port 25565 ComputerName : minecraft.gameserver.kyoto RemoteAddress : 172.67.211.11 RemotePort : 25565 InterfaceAlias : ethernet SourceAddress : 192.168.0.60 PingSucceeded : True PingReplyDetails (RTT) : 3 ms TcpTestSucceeded : False PS C:\Users\php> Test-NetConnection -ComputerName localhost -Port 25555 WARNING: TCP connect to (::1 : 25555) failed ComputerName : localhost RemoteAddress : 127.0.0.1 RemotePort : 25555 InterfaceAlias : Loopback Pseudo-Interface 1 SourceAddress : 127.0.0.1 TcpTestSucceeded : True
Step 10: I launched Minecraft Java Edition on the client machine and attempted to connect to localhost:25555, but I received the error: Connection refused: no further information.
32 replies