PC Terraria server stuck connecting to proxy server

Nylis

Terrarian
Hey guys,

So me and some friends decided to get back into Terraria, I went ahead and busted out my Raspberry Pi 4 to run a 24/7 server on it. After tinkering in Linux I seemed to have everything set up, along with a Cloudflare proxy between my public IP and domain name to hide sensitive info.

Were it so easy...

Now, connecting directly to the server through my public IP works just fine with no problems whatsoever. What I want however is people to connect through my domain name, and this is where I begin running into issues, as the client remains stuck on Cloudflare's proxy server (shown below). This is strange because I have set up Minecraft and Mumble servers the same way before without these issues occurring.
Screenshot (1076).png


And I set up the SRV and A records just like I did with those servers previously. I don't understand why it won't work for Terraria specifically.
reeee.png


Any possible solutions or explanations would be appreciated!
 
Last edited:
Same thing has been happening to me, not sure how to fix it. But I have talked to tmod helpers. I still haven't fixed it but what you could check your firewall to see if terraria is blocked. Hopefully that helps!
 
Answer: Cloudflare's proxy server on free accounts only works with a small selection of HTTP and HTTPS ports, not with 7777. You can see the supported ports here. You have two options right now (also visible at the same link).

Option 1: Pay a minimum of $20/mo for the cheapest paid plan, make your Terraria DNS record a grey record (no proxy), and enable Cloudflare Spectrum.
Option 2: Disable the proxy altogether. Just make your Terraria DNS record a grey record (no proxy) and deal with the public IP being visible. If it's your home IP, just make sure you have good settings on your firewall.
 
Answer: Cloudflare's proxy server on free accounts only works with a small selection of HTTP and HTTPS ports, not with 7777. You can see the supported ports here. You have two options right now (also visible at the same link).

Option 1: Pay a minimum of $20/mo for the cheapest paid plan, make your Terraria DNS record a grey record (no proxy), and enable Cloudflare Spectrum.
Option 2: Disable the proxy altogether. Just make your Terraria DNS record a grey record (no proxy) and deal with the public IP being visible. If it's your home IP, just make sure you have good settings on your firewall.
Why isn't this an issue on Minecraft servers that use CloudFlare? OP said he's hosted Minecraft servers without issues, the default minecraft port is not listed in the link you provided.
 
By the way, hiding your home IP address is somewhat security through obscurity. If you have any vulnerable ports, internet scanners will eventually find them, whether you make your address public or not. There are only about 2.1 billion possible IPv4 addresses, so scanning literally the entire internet for various purposes is very common.
 
Back
Top Bottom