Help connecting velocity to spigot
Hi I am trying to setup velocity to connect to spigot and have connection problems. The mcserver does not log anything upon connection attempt whereas velocity logs connection refused:
Error message and docker config here: https://pastebin.com/e2Ca8kUd
velocity.toml here https://pastebin.com/4t4p1UgC
In the server.properties I have set the IP to 127.0.0.1 as in the securing guide here https://docs.papermc.io/velocity/security
I have also set the port in the server.properties to 25566. And online-mode=false. https://pastebin.com/GzuNE178
In spigot.yml I have set bungeecord=true.
In paper-global.yml I have set the proxies as follows:
Any help would be nice here, as I am not sure which config(s) I have misconfigured.
Pastebin
mcproxy-proxy-1 | [02:34:18 INFO]: [connected player] Nosirrom (/1...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Config version. Do not change thisconfig-version = "2.6"# What po...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Securing Your Servers | PaperMC Documentation
It is vital that you secure your backend servers. As part of setting up Velocity, you will put your
Pastebin
#Minecraft server properties#Mon Jul 17 02:34:07 UTC 2023enable-jmx...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
38 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by daft_nos#0
are u using a host
or a panel like pterodactyl
uh, host
I think. This is on a box I own at home
host will use pterodactyl probably
oh
is it using pterodactyl?
nope
mind showing logs from when u join
sure
velocity needs spigot.yml bungeecord set to false.
if there's other logs in other locations lmk
I changed the bungeecord setting to false and composed down and up again
ah ur running it in docker
try using 172.18.0.1
as the backends ip in config
in server.properties?
no
in velocity.toml
where the backends are
hm ok
hmm still nope
im usually a pterodactyl user so cant help with normal docker sorry
actually wait 2 sec
use ifconfig to find the docker interface
ufw allow in on pterodactyl0 to 172.18.0.1 port <LOCALHOST_PORT> proto tcp
replace pterodactyl0 with whatever the interface name is
and 172.18.0.1 with its ip i guess?
and then <localhost_port> change that to be 25565, 25567 25566
(do a command for each or i guess a range should work)
might work
might not
well it could be that docker uses 172.17.0.1
try that then
172.18.0.1 is the one pterodactyl uses
interesting, new errors
there's also the docker bridge tho
... but that's not it either
do you have online-mode set to true in the vanilla server?
if yes set it to false
if no then check the vanilla server's logs
online mode is false in the server.properties.
bungeecord is set to false right
in spigot.yml
yes that is now false
send the new logs in vanilla server
here this includes the logs https://mclo.gs/WR9cONM
i thought u replaced it with the docker ip?
are you looking at an older file before I changed it?
ahh didn't notice
same issue if I change server.properties to use 0.0.0.0 instead of 127.0.0.1 FYI, for the IP.
set server ip to nothing
hm
ok
I keep switching back and forth because I see conflicting info on which to use with velocity.
short update: went back to simple and tried standard vanilla server in docker with no proxy, still couldn't connect. Examined firewall and saw a TON of redundant docker rules and stuff. Tried to nmap the minecraft port and it was blocked. Decided to flush the iptables and restart docker to generate fresh rules and vanilla started working again. Not sure why it broke in the first place.
Will retry velocity again later in the day.
Well I got my spigot+velocity working. I'll post a bit here about what the configs were.
vanilla = "172.17.0.1:25567"
in my velocity.toml.
bungeecord: false
in spigot.yml
in my paper-global.yml.
in my docker.compose for the spigot instance. This is required for velocity to connect to the vanilla instance.
server-ip=0.0.0.0
and server-port=25567
in server.properties.
^^^^^ I tried changing server-ip back to 127.0.0.1 and have connection problems.... so I'm not sure what the fix is here yet.If your velocity proxy is in online mode you'll want to change "online mode" to true in the spigot.yml
But for docker you'll need to use the docker ip addresses in velocity.toml
And leave server.properties ip address blank
paper-global-config.yml
not spigot
spigot.yml only has bungee settings
Right, thanks
So many different places to set online-mode in 😩
This all seems to work^ thanks. I'm going to close this now.