What is the name of the domain?
Related to
Cloudflare Tunnel
What is the error message?
Could not establish network communication with server.
What is the issue you’re encountering
When attempting to connect to my self-hosted Factorio server using the URL I set up in the Cloudflare ZTD, I get the message in-game that Factorio “cannot establish a connection with the server”.
What steps have you taken to resolve the issue?
I’m looking to set up my Cloudflare Tunnel so that my friends outside of my network can join my self-hosted game servers through a URL instead of my WAN IP and open ports. Right now, this is just Factorio, but it could be Rust, Satisfactory, or others later on.
Looking through some other forum posts, it looks like Cloudflare only proxies HTTP traffic (which I’m assuming is port 80). Factorio communicates using UDP port 34197.
I found this post (which seems similar to what I’m trying to do), but I’m wondering if there is an easier way as it seems like my friends would have to install WARP on their machines to access my internal network through Cloudflare.
I have the Cloudflared app/docker container Tunnel running on my local server which can access applications on the network (Mealie and Home Assistant). However, I think that’s because they’re using regular HTTP traffic to resolve a webpage. They use ports 3000 and 8123.
Previously, I’ve just port-forwarded the required ports on my router to where my Factorio server is hosted. Then, when any of us put in my WAN IP and port number, they can connect to the game just fine. The goal here is not to have open ports on my firewall and to make it easier for them to connect by just using a URL (if possible; otherwise, URL and port number). This would be for MAX, like 8 people, so I want to minimize any applications installed on their systems as possible. If that’s what I have to do, then there’s my answer; However if I can avoid it with the same result, then even better.
My question is: Since I have the Cloudflare Tunnel up and running on my server, what else do I need to configure in Cloudflare for my friends outside of my network to be able to access my self-hosted game servers through the Cloudflare tunnel?