#We have a custom cloud flare domain for our mc server and we try to connect and get a getsockopt

1 messages · Page 1 of 1 (latest)

dusky jasper
#

We have a selfhosted mc server and we want to run a custom domain we saw that you set up a custom domain for mc does anyone have any idea why this is

velvet minnow
#

What did you use to associate the domain with the IP?

#

Sorry, didn't see that you said cloudflare

#

Could you screenshot the settings?

tidal whale
velvet minnow
#

So that would be the subdomain mc with the port of 6862.

#

You have set up the main domain as well of course with an A record

tidal whale
dusky jasper
#

Yes we have a SRV set up

dusky jasper
velvet minnow
#

@dusky jasper Can you screenshot the config?

#

You can blur the IPs

#

@dusky jasper Also, can they connect to the IP via the internet?

stone iris
#

I'm the owner and host of the server.

Details:
Server running though crafty though dockage on truenas scale

#

And cloudflated running as a iX app

dusky jasper
#

These are the settings

#

We are co owners

velvet minnow
# stone iris

The A record is set for the local IP, not the internet IP

#

It needs to point to the IP that is accessible on the internet

#

With the current rule, it would tell users to connect to 192.168.86.33 on their own local network

stone iris
#

Wouldn't that expose the IP then and defeat the purpose?

velvet minnow
#

You can get the IP from any DNS

#

DNS doesn't hide the IP

#

Not sure if cloudflare routes it internally

#

If you want to hide the IP, you would need a tunnel

#

Or proxy

#

Not sure if Cloudflare does that

#

I went and checked my own server

#

I then checked a DNS lookup

#

So it looks like cloudflare proxies it, so the IP is hidden

#

This is the free tier, not paying for anything

#

And when setting it up, I seem to remember Cloudflare giving a warning that the IP was exposed when I did it wrong the first time

stone iris
velvet minnow
#

Not proxied

#

DNS only

stone iris
#

dns only exposes the ip

velvet minnow
#

Then you would need a tunnel

#

Not sure why that doesn't happen with me though

tidal whale
stone iris
tidal whale
vivid nacelle
#

you need an SRV record as well as an A record pointing to your public IP

#

ive researched this quite a bit for my own servers, and the best free solutions ive found are:

  1. SRV + A record; exposes your IP, which might be a security concern if you self-host
  2. VPN/Proxy tunnel; requires clients on every player computer
  3. VPN Tunnel to "free" VPS Server (SRV + A record to VPS server that exposes the VPS ip not your own); Oracle Cloud has a decent free tier, but they can and will reposess your server randomly
#

the safest and most secure would probably be option 2. VPN tunnel requires a port exposed, but a cloudflare tunnel (ex.) requires you to trust cloudflare with your data

#

the reality is, anything in the cloud can't really be free because a datacenter is expensive af

#

so any free proxy or VPS server or anything like that might skip out on you or steal anything and everything from you because they have to make money somehow

teal jackal
#

Can't you use Modflared for this

#

or is that what they are trying to do

velvet minnow
dusky jasper
vivid nacelle
# stone iris

And here, I see it pointing to the server’s private IP (good thing too or it’d have leaked your public ip). It needs to be your public ip

tidal whale
#

What 09creeperboy said above. The guides I linked in my last message have everything you need to get setup.

dusky jasper
#

we are looking into the guilds we both changed our dns to cloudflare. Looking at modflared is that something for client side or user side