#External Host
1 messages · Page 1 of 1 (latest)
list all the things you did to setup the external server
We did everything that were on the docs for how to setup external server
describe it again here for me
@mellow venture
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
if you set the DNS type to SRV, there shouldn't be a port option
also you are missing the haproxy step
So we don't need this
I did that to MB forgot to add that as its part of step 1
on the minehut panel, when you set the dns type to srv, the port option should be blocked off
send your velocity.toml since it doesn't look like you have haproxy protocol enabled
Okay give me a spec
Sec*
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
Positive
your server should not be pingable directly with that option enabled. you probably have something else that is interfering with it
Positive we don't
Only thing that could block it is a firewall which we don't have lol
completely reset your proxy from scratch
No - I'm not going to reset all player data and everything connected just for this...
Doing that likely wouldn't even change anything - I would have the same plugins on the same configuration
There is something called databases...
if you are using a file based database thats on the proxy for a proxy plugin, just download that and upload it back later
They aren't file they are actual databases...
And atp what's the point of reinstalling
It would be the same plugins on the same configuration
if your databases are external, resetting the proxy shouldnt clear any of that
to see what it functions like on a fresh proxy without any other modifications or plugins
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
Nope. They are through the panel. If I delete the server it deletes the databases
Yeah but I would re-config it the same way...
Same plugins
Same celovity config
resetting a server does not delete databases
😭
unless you delete those as well
yes but this is to see if it will work on a fresh install. to see if those configurations are whats causing the issues
I understand that but its 1 change in my velocity config. If I dowlonad the exact same version of velocity from Paper & put it in the server set it up to work with my backend servers & enable the haproxy it will js be the exact same
IK it isn't plugins causing the issue cuz the only plugins we have on the proxy is luckperms, maintenance, gyser, and motd
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
also something else is that you won't need geyser yourself. Minehut will handle all that for you
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
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.
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
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
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}}
seems fine to me
ok
?
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
Yeah I did /join it says "The server you are trying to join in offline" and I can still ping the server
tho I can no longer access your server directly so it looks like haproxy may be working now actually
Interesting
But I can still ping?
pinging like this is different from like pinging the minecraft server itself
oh mb i thought when you meant it disabled it it disabled it entirely
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
So js join with 66.23.198.73 instead of play.soulboundmc.fun
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
nope
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.
restarting the network to test now
you dont need to restart if you are just changing stuff on the minehut panel btw
Forgot to remove floodgate
Both wont connect (top is with play.soulboundmc.fun bottom is with direct VPS IP)
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
Is that the only way? can people not join the server normally anymore?
If its a mh external?
You can setup another proxy to use the domain
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
WDYM? "unsupported way?" like its possible but y'all won't help?
yeah its possible but Minehut will not give you any support in setting it up or issues with it
If I have it point to minehut & my IP can they join through both or I need seperate proxies
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
I understand that but will they still be able to join through the custom domain or do I specifically need another proxy to do that
yes you will still be able to use your custom domain once you set that up through minehut
Ok so just confirming they can join from mh lobby & play.soulboundmc.fun once its setup right
yes
and we have a skin restore plugin could that do anything?
that shouldn't affect the current state of things but you should remove that as well since its not needed
We need it otherwise bedrock skins show up to java as steve
does the plugin use the floodgate api or anything to function?
Not sure tbh I just asked when I asked ab the bedrock joining issue and then told me to install it and it should fix it & it did
plugins like that are only really used when the server is in offline mode
since your server is normal now, it shouldnt be needed
Ok
Still doesn't work but I noticed there is no error in console
Shouldn't it be erroring?
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
before when a player tried to join, your proxy console showed the connection?
🤷 if it was connection but at some point it said ``player tried to join but failed to do end of stream"
in the proxy console?
before you added any of the minehut related stuff, did you have a working proxy
Yes both Java & Bedrock could join
But then i did the steps for minehut restarted and now can't join
can you remove the minehut startup flag and set haproxy back to false and restart the server real quick
Can join js fine now
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
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
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
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}}
make sure the startup flag is only on the proxy an not the backend servers as well
Oh it needs to be on backend?
no only the proxy
oh ok
Then as long as this is correct I have it right
you are just using a ptero panel right
Yep!
when you press start, do you see this at the top of the console
admin/nests/Minecraft/Velocity
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
How? whenever I goto the startup page I can't edit the startup command there. I asked chatGPT and it told me to edit it there
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
this thing just takes you to the admin dashboard for that server
you can also just access it through the admin page directly
yes
click on the velocity server in that list
and then do this step and below
Restarting.
also btw if you want to send some images but dont want to send it publicly, you can always just dm me them
Ok
I js didn't know if any of that was sum I shouldn't share
Better safe then sorry 🙂
Works!
yeah was just able to join
How do I set it up with my custom domain so I don't need to make another proxy (we don't have enough resources for a 2nd proxy yet)
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
Do I need to remove my old DNS records?
cuz its not working
sent ss in dms
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
Ah
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
Ok - is it caps sesitive when adding it here (we have it SoulBoundMC if I js put it soulboundmc.minehut.gg will it error?)
domains are not case sensitive so either should work
dms
its saying that you already have another A or CNAME record with the same name
are you sure you dont have any other duplicate
Those are the only records related to the mc server
the other 1s are for ptero, our store, our website, or one of our redirects
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
So I need 1 like bedrock.soulbundmc.fun and play.soulboundmc.fun for java
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
nah - preferably I want all players to connect with play.soulboundmc.fun
yeah so just remove the cname record towards the java ip
Then java can't join no?
you have an srv record handling that
so delete this 1 right?
yeah
Works on both minehut and the domain!
nice
Thanks for your help! Apologies it was just a simple fix on my end
yeah np