#External Host

1 messages · Page 1 of 1 (latest)

deep wharf
#

When i set up external minecraft server I tried joing with the normal ip and it says "End of Stream" and no one else can join.

slate quartz
#

list all the things you did to setup the external server

deep wharf
slate quartz
#

describe it again here for me

deep wharf
#

@mellow venture

mellow venture
# slate quartz describe it again here for me

I put -Dmojang.sessionserver=https://api.minehut.com/mitm/proxy/session/minecraft/hasJoined into our velcoity startup command

Had @deep wharf put in the ip, proxy type as velocity, DNS type as SRV, and port

Restarted the server

slate quartz
#

if you set the DNS type to SRV, there shouldn't be a port option

#

also you are missing the haproxy step

mellow venture
mellow venture
slate quartz
#

on the minehut panel, when you set the dns type to srv, the port option should be blocked off

slate quartz
#

send your velocity.toml since it doesn't look like you have haproxy protocol enabled

mellow venture
slate quartz
#

are you sure you restarted your proxy fully after changing that option since whent hat option is true, the server is not pingable directly. but I can still ping it

#

also why is online mode set to false

slate quartz
#

your server should not be pingable directly with that option enabled. you probably have something else that is interfering with it

mellow venture
#

Only thing that could block it is a firewall which we don't have lol

slate quartz
#

completely reset your proxy from scratch

mellow venture
#

Doing that likely wouldn't even change anything - I would have the same plugins on the same configuration

slate quartz
#

your proxy shouldnt have any player data

#

thats stored on your sub servers

mellow venture
slate quartz
#

if you are using a file based database thats on the proxy for a proxy plugin, just download that and upload it back later

mellow venture
#

And atp what's the point of reinstalling

#

It would be the same plugins on the same configuration

slate quartz
#

if your databases are external, resetting the proxy shouldnt clear any of that

slate quartz
#

since your proxy is currently not functioning how a normal proxy is

#

you have a built in velocity setting enabled which isnt working like its supposed to

mellow venture
mellow venture
#

Same plugins

slate quartz
#

im not asking to delete

#

just reset

mellow venture
#

Same celovity config

mellow venture
#

that would reset the db

slate quartz
#

resetting a server does not delete databases

mellow venture
#

😭

slate quartz
#

unless you delete those as well

slate quartz
mellow venture
#

IK it isn't plugins causing the issue cuz the only plugins we have on the proxy is luckperms, maintenance, gyser, and motd

slate quartz
#

not always. there are many things that can be different. such as the plugins you said you have. haproxy is a built in velocity setting and it doesn't seem to be working for you correctly. so the issue is either some other modification is interfering with it or you have a broken velocity installation

slate quartz
mellow venture
# slate quartz also something else is that you won't need geyser yourself. Minehut will handle ...

None of the plugins on the proxy have anything to do with what we are doing & we just had to re-setup our proxy with the latest 1.21.8 version so if its a broken install it would be broken for everyone. (I've already confirmed my file isn't corrupted via the paper website)

I'm not trying to be a a## I'm just trying to fully understand how restarting would fix this considering we just installed this setup

slate quartz
#

when a server normally has haproxy enabled, it doesn't let you ping or join the server directly. your server currently has it enabled but its not doing that. The reason I was asking you to do what I said above is to just try and debug why its doing that. Since that option is a default option with Velocity but it doesn't seem to be working as expected. There are many cases where users have changed something they are not supposed to which causes things to break. So just wanted to try a fresh installation with nothing but the minehut stuff to see if it works then. You don't have to do what I am asking and you can try debugging other ways. But thats just one main thing you can do to help see what is causing the issue. Something else I noticed and asked about above is you have online mode set to false in velocity.toml. That shouldn't be affecting the haproxy option but that should be set to true. online mode only needs to be set to false on the backend servers.

mellow venture
# slate quartz when a server normally has haproxy enabled, it doesn't let you ping or join the ...

Understandable and I'm happy to restart I js am trying to understand because I don't wanna go through restarting js for it to still not work and have to take the time to fix everything.

I mean the only thing I've changed in the velocity.toml is the servers config and the things needed to allow connection to the backend servers & then enabling the haproxy so I don't see why it could be a "our setup" issue.

#

We have offline mode set to false here because for some reason we couldn't get gyser to work so I contacted support and they told me to try setting it to false & it worked

#

So

#

But if MineHut does the gyser stuff for us once we get this working I will set it true again & delete gyser

slate quartz
#

yeah minehut handles geyser for you automatically so you don't need to set that up yourself

#

can you just try removing geyser and setting online mode to true and nothing else and then see if that works

mellow venture
#

Sure 🙂

#

I am going to send my full velcoity startup command here too just to ensure its correct

#
java -Dmojang.sessionserver=https://api.minehut.com/mitm/proxy/session/minecraft/hasJoined -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar {{SERVER_JARFILE}}
slate quartz
#

seems fine to me

mellow venture
#

ok

slate quartz
#

you need to use /join. /server is from a deprecated feature and only works if the server is online and shows that message if it is offline. but looks like its still not working looking at that message. so geyser wasn't the issue

mellow venture
#

Yeah I did /join it says "The server you are trying to join in offline" and I can still ping the server

slate quartz
#

tho I can no longer access your server directly so it looks like haproxy may be working now actually

mellow venture
#

But I can still ping?

slate quartz
mellow venture
slate quartz
#

you can test it by just adding the direct ip to your client and try joining with it or going to a site like https://mcsrvstat.us and searching the direct ip on that

#

but it is no longer accessible so seems like the haproxy is working fine now. so maybe geyser was causing something

mellow venture
slate quartz
#

both those lead to the same place so it would do the same thing

#

but you can use those to test if haproxy is enabled or not

#

if going there resolves the server, then its not enabled

mellow venture
slate quartz
#

also I suggest on the minehut panel to just use your numerical IP directly or a different domain since currently players will not be able to use that custom domain at all to join the server.

mellow venture
slate quartz
#

you dont need to restart if you are just changing stuff on the minehut panel btw

mellow venture
#

Forgot to remove floodgate

mellow venture
slate quartz
#

thats because your custom domain is still pointing to your direct ip

#

you are going to have to join through minehut

#

you also need to route your custom domain through minehut

#

but currently, the setup is still not working so you can do that later

mellow venture
#

If its a mh external?

deep lark
#

You can setup another proxy to use the domain

slate quartz
#

you need a second proxy if you want players to join directly but its an unsupported way

#

you can just have your custom domain route through minehut

mellow venture
slate quartz
#

yeah its possible but Minehut will not give you any support in setting it up or issues with it

mellow venture
slate quartz
#

if you have your custom domain routed through minehut, players can join with that or through the minehut lobby

#

but currently since your setup is still not working, you can do that later

#

I remember you saying you had an MOTD plugin on your proxy earlier. can you try removing that as well

#

when minehut pings your server to see if its online, if it recieves invalid data, it will mark it as offline. and some motd plugins can sometimes send invalid data

mellow venture
slate quartz
#

yes you will still be able to use your custom domain once you set that up through minehut

mellow venture
#

Ok so just confirming they can join from mh lobby & play.soulboundmc.fun once its setup right

slate quartz
#

yes

mellow venture
#

ok

#

I'm js going to back everything up & reset the server

slate quartz
#

dont reset the server yet

#

just remove your motd plugin for now

mellow venture
#

ok

#

Oh

mellow venture
slate quartz
#

that shouldn't affect the current state of things but you should remove that as well since its not needed

mellow venture
slate quartz
#

does the plugin use the floodgate api or anything to function?

mellow venture
slate quartz
#

plugins like that are only really used when the server is in offline mode

#

since your server is normal now, it shouldnt be needed

mellow venture
#

Ok

mellow venture
#

Shouldn't it be erroring?

slate quartz
#

why should it be erroring?

mellow venture
# slate quartz why should it be erroring?

Well it used to say "end of stream" so I figured it would error considering I'm trying to join the server but something is failing (which is usually logged in console)

#

Like say I try and join but my luckperms data is fudged. It will error to console saying something along the lines of my datas messed up

slate quartz
#

before when a player tried to join, your proxy console showed the connection?

mellow venture
slate quartz
#

in the proxy console?

mellow venture
#

MB IT WOULD SAY END OF STREAM IF BEDROCK TRIED TO JOIN

#

my bad for caps

slate quartz
#

before you added any of the minehut related stuff, did you have a working proxy

mellow venture
#

But then i did the steps for minehut restarted and now can't join

slate quartz
#

can you remove the minehut startup flag and set haproxy back to false and restart the server real quick

mellow venture
#

Sure

#

VPS had to reset give me a second.

slate quartz
#

okay revert those two things back now

#

since haproxy is working fine now but minehut is still marking your server as offline, the only really other reasons it does this is if

  • you have some sort of firewall or your host has ddos protection that is blocking pings from minehut
  • the server list ping is sending some sort if invalid data usually caused by motd plugins. but you said your emoved this now so it shouldnt be this
mellow venture
# slate quartz okay revert those two things back now

I was just scrolling through the paper config - I see I have proxy-protocal: true on all backend servers. I set it to false js cuz I was curious to test & I joined through mh lobby but got disconnected due to this but I'm on a Java acc

#

Not sure what that means but its something

#

You can look it up too my ign is OllieTheG0at

slate quartz
#

yeah proxy protocol needs to be false on the backend servers when using a proxy

#

also that message usually comes up when the startup flags arent set correctly

mellow venture
slate quartz
#

make sure the startup flag is only on the proxy an not the backend servers as well

mellow venture
#

Oh it needs to be on backend?

slate quartz
#

no only the proxy

mellow venture
#

oh ok

mellow venture
slate quartz
#

you are just using a ptero panel right

mellow venture
#

Yep!

slate quartz
#

when you press start, do you see this at the top of the console

slate quartz
#

I don't see the minehut flag in there

#

where are you configuring the flag

mellow venture
slate quartz
#

that configures in the egg itself and only applies to newly created servers with that egg

#

you need to configure it on the server specifically

#

at the very end of the top bar next to activity, you should see this arrow looking thing

mellow venture
slate quartz
#

click on that

#

then click on the startup tab

#

and then you should see this

#

configure the command in the top box

#

and then press save modifications

mellow venture
#

huh

#

we have blueprint so it looks diff

slate quartz
#

you can also just access it through the admin page directly

#

yes

#

click on the velocity server in that list

slate quartz
mellow venture
#

Restarting.

slate quartz
#

also btw if you want to send some images but dont want to send it publicly, you can always just dm me them

mellow venture
#

I js didn't know if any of that was sum I shouldn't share

#

Better safe then sorry 🙂

#

Works!

slate quartz
#

yeah was just able to join

mellow venture
desert flameBOT
#
How do I set up a custom domain?

While using Minehut, all servers by default can be connected to by using the IP servername.minehut.gg. If you are interested in taking your server to the next level by using a custom domain, follow the tutorial below and you'll easily be able to set one up.

⚠️ Requirements:

  • Dashboard access to the Minehut server you'd like to use the custom domain on. This works with free, paid and external plans!
  • You will need to purchase a domain. This guide uses Cloudflare as it's a popular, affordable option, but you can use whichever domain registrar you'd like. The records needed are the same across all domain registrars, although the UI will look different than our screenshots if you use a different service.
  • You will need to have the DNS records page of your domain registrar open in your browser. Most of the custom domain setup involves your providers website
mellow venture
#

cuz its not working

#

sent ss in dms

slate quartz
#

yeah remove the current A and SRV record that you have

#

the txt record you created is just for verification

#

you'll still need to create a separate record for the domain to actually work

#

the article above should talk about it

mellow venture
#

Ah

slate quartz
#

theres also a section on how to make the domain work for bedrock players as well btw

#

so if you want bedrock players to be able to join with it, make sure to do that as well

mellow venture
#

Ok - is it caps sesitive when adding it here (we have it SoulBoundMC if I js put it soulboundmc.minehut.gg will it error?)

slate quartz
#

domains are not case sensitive so either should work

mellow venture
#

dms

slate quartz
#

its saying that you already have another A or CNAME record with the same name

#

are you sure you dont have any other duplicate

mellow venture
#

the other 1s are for ptero, our store, our website, or one of our redirects

slate quartz
#

yeah its cause you have the play subdomain directing to both the java and bedrock ips

#

you already have an srv record for java

#

soy ou should be able to remove the cname to the java one

mellow venture
#

So I need 1 like bedrock.soulbundmc.fun and play.soulboundmc.fun for java

slate quartz
#

you can do that as well

#

but you should also just be able to remove the cname for the java one

#

since you have the srv handling that

mellow venture
#

nah - preferably I want all players to connect with play.soulboundmc.fun

slate quartz
#

yeah so just remove the cname record towards the java ip

mellow venture
slate quartz
#

you have an srv record handling that

mellow venture
#

The only cname record I have is for the minehut java

#

ohh

#

ok

mellow venture
slate quartz
#

yeah

mellow venture
#

Works on both minehut and the domain!

slate quartz
#

nice

mellow venture
#

Thanks for your help! Apologies it was just a simple fix on my end

slate quartz
#

yeah np