A
Admincraft•2y ago
Nosirrom

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:
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: true
secret: <contains secret>
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: true
secret: <contains secret>
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
Admincraft Meta
Admincraft Meta•2y ago
Pastebin is blocked in some countries
Requested by daft_nos#0
Admincraft Meta
Admincraft Meta•2y ago
Pastebin is blocked in some countries
Requested by daft_nos#0
Admincraft Meta
Admincraft Meta•2y ago
Pastebin is blocked in some countries
Requested by daft_nos#0
Admincraft Meta
Admincraft Meta•2y ago
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
ProGamingDk
ProGamingDk•2y ago
are u using a host or a panel like pterodactyl
Nosirrom
NosirromOP•2y ago
uh, host I think. This is on a box I own at home
ProGamingDk
ProGamingDk•2y ago
host will use pterodactyl probably oh is it using pterodactyl?
Nosirrom
NosirromOP•2y ago
nope
ProGamingDk
ProGamingDk•2y ago
mind showing logs from when u join
Nosirrom
NosirromOP•2y ago
sure
ProGamingDk
ProGamingDk•2y ago
velocity needs spigot.yml bungeecord set to false.
Nosirrom
NosirromOP•2y ago
if there's other logs in other locations lmk I changed the bungeecord setting to false and composed down and up again
ProGamingDk
ProGamingDk•2y ago
ah ur running it in docker try using 172.18.0.1 as the backends ip in config
Nosirrom
NosirromOP•2y ago
in server.properties?
ProGamingDk
ProGamingDk•2y ago
no in velocity.toml where the backends are
Nosirrom
NosirromOP•2y ago
hm ok hmm still nope
mcproxy-proxy-1 | [04:04:12 INFO]: [connected player] Nosirrom (/192.168.1.70:48422) has connected
mcproxy-proxy-1 | [04:04:17 ERROR]: [connected player] Nosirrom (/192.168.1.70:48422): unable to connect to server vanilla
mcproxy-proxy-1 | io.netty.channel.ConnectTimeoutException: connection timed out: /172.18.0.1:25567
mcproxy-proxy-1 | [04:04:12 INFO]: [connected player] Nosirrom (/192.168.1.70:48422) has connected
mcproxy-proxy-1 | [04:04:17 ERROR]: [connected player] Nosirrom (/192.168.1.70:48422): unable to connect to server vanilla
mcproxy-proxy-1 | io.netty.channel.ConnectTimeoutException: connection timed out: /172.18.0.1:25567
ProGamingDk
ProGamingDk•2y ago
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
Nosirrom
NosirromOP•2y ago
well it could be that docker uses 172.17.0.1
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:40:70:cc:b7 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:40:70:cc:b7 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
ProGamingDk
ProGamingDk•2y ago
try that then 172.18.0.1 is the one pterodactyl uses
Nosirrom
NosirromOP•2y ago
interesting, new errors
mcproxy-proxy-1 | [04:13:31 INFO]: [connected player] Nosirrom (/192.168.1.70:39868) has connected
mcproxy-proxy-1 | [04:13:31 INFO]: [server connection] Nosirrom -> vanilla has connected
mcproxy-proxy-1 | [04:13:31 INFO]: [server connection] Nosirrom -> vanilla has disconnected
mcproxy-proxy-1 | [04:13:31 ERROR]: [connected player] Nosirrom (/192.168.1.70:39868): unable to connect to server vanilla
mcproxy-proxy-1 | com.velocitypowered.proxy.util.except.QuietRuntimeException: The connection to the remote server was unexpectedly closed.
mcproxy-proxy-1 | [04:13:31 INFO]: [connected player] Nosirrom (/192.168.1.70:39868) has disconnected: Unable to connect you to vanilla. Please try again later.
mcproxy-proxy-1 | [04:13:40 INFO]: [connected player] Nosirrom (/192.168.1.70:42684) has connected
mcproxy-proxy-1 | [04:13:40 INFO]: [server connection] Nosirrom -> vanilla has connected
mcproxy-proxy-1 | [04:13:40 INFO]: [server connection] Nosirrom -> vanilla has disconnected
mcproxy-proxy-1 | [04:13:40 ERROR]: [connected player] Nosirrom (/192.168.1.70:42684): unable to connect to server vanilla
mcproxy-proxy-1 | com.velocitypowered.proxy.util.except.QuietRuntimeException: The connection to the remote server was unexpectedly closed.
mcproxy-proxy-1 | [04:13:40 INFO]: [connected player] Nosirrom (/192.168.1.70:42684) has disconnected: Unable to connect you to vanilla. Please try again later.
mcproxy-proxy-1 | [04:13:31 INFO]: [connected player] Nosirrom (/192.168.1.70:39868) has connected
mcproxy-proxy-1 | [04:13:31 INFO]: [server connection] Nosirrom -> vanilla has connected
mcproxy-proxy-1 | [04:13:31 INFO]: [server connection] Nosirrom -> vanilla has disconnected
mcproxy-proxy-1 | [04:13:31 ERROR]: [connected player] Nosirrom (/192.168.1.70:39868): unable to connect to server vanilla
mcproxy-proxy-1 | com.velocitypowered.proxy.util.except.QuietRuntimeException: The connection to the remote server was unexpectedly closed.
mcproxy-proxy-1 | [04:13:31 INFO]: [connected player] Nosirrom (/192.168.1.70:39868) has disconnected: Unable to connect you to vanilla. Please try again later.
mcproxy-proxy-1 | [04:13:40 INFO]: [connected player] Nosirrom (/192.168.1.70:42684) has connected
mcproxy-proxy-1 | [04:13:40 INFO]: [server connection] Nosirrom -> vanilla has connected
mcproxy-proxy-1 | [04:13:40 INFO]: [server connection] Nosirrom -> vanilla has disconnected
mcproxy-proxy-1 | [04:13:40 ERROR]: [connected player] Nosirrom (/192.168.1.70:42684): unable to connect to server vanilla
mcproxy-proxy-1 | com.velocitypowered.proxy.util.except.QuietRuntimeException: The connection to the remote server was unexpectedly closed.
mcproxy-proxy-1 | [04:13:40 INFO]: [connected player] Nosirrom (/192.168.1.70:42684) has disconnected: Unable to connect you to vanilla. Please try again later.
there's also the docker bridge tho
342: br-2540c62bb47f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:b3:b2:5d:c7 brd ff:ff:ff:ff:ff:ff
inet 172.26.0.1/16 brd 172.26.255.255 scope global br-2540c62bb47f
valid_lft forever preferred_lft forever
inet6 fe80::42:b3ff:feb2:5dc7/64 scope link
valid_lft forever preferred_lft forever
342: br-2540c62bb47f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:b3:b2:5d:c7 brd ff:ff:ff:ff:ff:ff
inet 172.26.0.1/16 brd 172.26.255.255 scope global br-2540c62bb47f
valid_lft forever preferred_lft forever
inet6 fe80::42:b3ff:feb2:5dc7/64 scope link
valid_lft forever preferred_lft forever
... but that's not it either
Deleted User
Deleted User•2y ago
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
Nosirrom
NosirromOP•2y ago
online mode is false in the server.properties.
Deleted User
Deleted User•2y ago
bungeecord is set to false right in spigot.yml
Nosirrom
NosirromOP•2y ago
yes that is now false
Deleted User
Deleted User•2y ago
send the new logs in vanilla server
Nosirrom
NosirromOP•2y ago
here this includes the logs https://mclo.gs/WR9cONM
mclo.gs
Unknown Log [#WR9cONM]
69 lines
Deleted User
Deleted User•2y ago
i thought u replaced it with the docker ip?
No description
Nosirrom
NosirromOP•2y ago
are you looking at an older file before I changed it?
Deleted User
Deleted User•2y ago
ahh didn't notice
Nosirrom
NosirromOP•2y ago
same issue if I change server.properties to use 0.0.0.0 instead of 127.0.0.1 FYI, for the IP.
Deleted User
Deleted User•2y ago
set server ip to nothing
No description
Deleted User
Deleted User•2y ago
hm ok
Nosirrom
NosirromOP•2y ago
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
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: false
secret: <snip>
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: false
secret: <snip>
in my paper-global.yml.
ports:
- "25567:25567"
ports:
- "25567:25567"
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.
Discount Milk
Discount Milk•2y ago
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
ProGamingDk
ProGamingDk•2y ago
paper-global-config.yml not spigot spigot.yml only has bungee settings
Discount Milk
Discount Milk•2y ago
Right, thanks
Nosirrom
NosirromOP•2y ago
So many different places to set online-mode in 😩 This all seems to work^ thanks. I'm going to close this now.

Did you find this page helpful?