#velocity-help

161 messages · Page 1 of 1 (latest)

wind birch
#

Could you tell me if there are any preferred settings for a medium-sized modpack on version 1.21.1?

#

Also, how much RAM should be allocated for a proxy server hosting two modded servers, with a combined capacity of 100–150 players?

west dune
#

Is it possbile for server owners to make the server optional to join with or without velocity?

#

I can join the backend without connecting through the front end is what i mean

calm shard
west dune
#

like 90ms to 300

calm shard
#

and how are you hosting your main server & velocity server

calm shard
#

how and where are you hosting your servers

west dune
calm shard
#

both

west dune
#

Well ive done it twice

Exataron (EU) (Ms : 119) to Craftlands (EU) (Ms : 150 - 160)

Exataron (EU) (Doenst matter) To Craftlands (Asia : 90ms Without Velocity, 300 With Velocity)

west dune
calm shard
#

yes because putting a velocity instance on a completely separate host/location is stupid

#

it adds latency and can significantly worsen things

west dune
#

Yea, thats why i asked if a configuration option is possbile.

calm shard
#

it wouldn't be possible because of player info forwarding

#

but i don't get what you're trying to accomplish here either

west dune
west dune
calm shard
#

yes but why are you trying to use velocity to begin with

#

and why are you trying to use velocity on another host

west dune
calm shard
#

velocity has nothing to do with advertising?

west dune
#

No

#

like

#

the host

#

WE have to use the front end ip to post a page there for adveristement

#

its smth different

#

jst igrone

calm shard
#

if you want to solve this, stop using velocity

calm shard
#

host e.g. a gate or haproxy instance at craftlands instead

west dune
#

I mean like

#

the configuration option isnt possbile right

#

can i know why

calm shard
#

because of player info forwarding

#

you host your backend servers in offline mode and configure it to accept player info from velocity

#

paper will proceed to block connections that aren't from velocity because it is a security risk

calm shard
west dune
calm shard
#

because velocity handles authentication

#

it can't forward information to an online mode server

#

the online mode server expects mojang authentication aswell

#

offline mode servers don't care

west dune
#

I dont wanna sound stupid asking this but cant velocity pass over authecation to the backend?

calm shard
#

it does that

#

with offline mode & the velocity settings configured in paper's config

#

your usecase is very niche here, it's not supported out of the box and goes against how velocity/bungeecord is supposed to work

west dune
#

I dont think its jst me

calm shard
# west dune I dont think its jst me

the majority of people here using velocity instances are not trying to use it on a weird host for advertising purposes only to complain about ping lol

#

like i said if you want to make this work you'll probably want to look at gate or haproxy

west dune
#

k

calm shard
#

it would simply proxy the connection from host A to host B

#

backend server stays in online mode and handles authentication as normal, meaning you can use the backend server ip to connect to it aswell

west dune
#

Ill try it out.

gleaming arrow
#

Good evening everyone, I hope you are all well

#

Sorry if there are mistakes in my messages, but it's because I use a translator

#

Does anyone know when Velocity might be updated? I need to know which hosting plan to buy

gleaming arrow
unique mountain
#

updated to what?

#

Velocity supports 26.1 since day one

gleaming arrow
blissful dome
#

We've also supported that since day 1

cloud sierra
#

when using Velocity, Geyser-velocity, and Playit.gg is it possible to make a single Playit.gg IP that both bedrock and java players use? Right now I have two different IPs (one for java and one for bedrock) and would like to consolidate them

thick rune
#

That would be up to either Geyser or Playit, velocity doesn't handle anything regarding bedrock

livid mica
#

why did velocity 3.5 break so many plugins that alter messaging. I cant find another plugin that lets players use /msg across servers

jovial storm
livid mica
# jovial storm havent hear of this? can you provide some example of plugin that breaks? 3.5 has...

Plugins like these just dont load anymore when running them on velocity 3.5. Im just struggling to find another plugin like these that are pretty simple and are updated. idk if there is a way to somehow revert these changes without going back to velocity 3.4. Unless you may have another idea on how to add cross server private messages another way
https://www.spigotmc.org/resources/privatemessages-•-bungeecord-and-velocity-support.98882/
https://modrinth.com/plugin/chattools

jovial storm
# livid mica Plugins like these just dont load anymore when running them on velocity 3.5. Im ...

The first plugin seem to be abandoned for years and the 2nd one is AI coded. You should probably find alternatives, Minecraft is an everchanging community and you can find plugins that support Velocity on Modrinth The issue you are facing seem to be plugins being abandoned or poorly made and not because Velocity is updated to keep up with Mojang changes.

I dont personally use any chat plugin on proxy so I have nothing to recommend though.

nova tide
fair dagger
turbid mist
#

if you mean the transfer packet then that should just work

fair dagger
turbid mist
#

that's what I said

fair dagger
#

Translator confused me that why

#

In transfer backend ip will leak

#

How i can prevent that

nova tide
#

Well, that's how transfer works

#

if your server server is behind velocity, you would want to use the bungee messaging channel

old garnet
gleaming arrow
frail grove
#

what is the output of /velocity info

gleaming arrow
frail grove
#

you might have the latest build of 3.4.0, but 3.4.0 is not the latest version

grim shard
#

Why are 3.4-SNAPSHOT and 3.4 marked as supported??

gleaming arrow
frail grove
#

you can use the same site you're already on to navigate to 3.5.0, or just use the downloads page

gleaming arrow
#

thx bro

#

Does the fact that it's a Snapshot make it unsafe? What's the difference between a Snapshot and a "normal" version?

frail grove
#

no difference

gleaming arrow
#

what

frail grove
#

there is no difference between a snapshot and a "normal" version

gleaming arrow
#

So why did the creators add that word?

jovial storm
#

It sounds cool

frail grove
#

it's basically just for technical reasons, maybe it could be hidden a bit better from regular users like you

gleaming arrow
#

Okay, thanks to both of you haha

fierce lake
#

why does my server crash?

#

Ive connected my proxy to 2 seperate servers a event server and a survival server

#

The event server works perfectly fine however the survival server is like broken and crashes instantly on startup

pulsar narwhalBOT
grim shard
#

if a backend server crashes this has nothing to do with velocity

fierce lake
#

well im using velocity

#

and im asking for help?

grim shard
#

but velocity does not crash so ask the backend software?

fierce lake
#

already did that lad but theyre slow asf

jovial storm
fierce lake
#

cause its something with when I enable the Private server button in the startup tab

#

if I turn on the private button my server crashes, if I turn it on my server runs perfectly fine

unique mountain
#

that sounds like something specific to that host, you would need to ask them

fierce lake
#

bruh

unique mountain
#

not sure what to bruh about there. Velocity does not deal with private/public buttons in some host's panel

fierce lake
#

its cause my hosting providers support is atrocious

#

they reply maybe in 24h

#

like maybe

unique mountain
#

I mean, choose a different host then?

fierce lake
#

no cause ive always used this host and its the only one I find actually good

unique mountain
#

If you are paying them and not getting what you expect, stop paying them and pay someone else who gives you what you expect

fierce lake
#

all the other ones are just trash ngl

#

only negative part about my hosting provider as of now is the support, excluding support its a great hosting provider

unique mountain
#

well, not sure what to tell you then.
they are using Pterodactly as a panel. But that "private" button stuff is not a default Ptero feature either. So literally no one except them can help you there, sorry

#

the AI-generated website of that host does not exactly inspire my confidence in their quality though OMEGALUL

fierce lake
#

I agree

#

its servcity

young elbow
#

does velocity -> velocity work

nova tide
#

unsupported

#

no built in nested forwarding, for example

#

You can get it to connect but you'd lose UUIDs/IPs, and is oftne usually the wrong solution

young elbow
#

it definitely is not the right solution just would've been a nice copout if it worked

graceful olive
#

Hey! so I have 2 machines and I want players to be able to go from one proxy to another from a backend. How would I set this up? would i use redis?

unique mountain
#

that sounds like you just want a server transfer?

glossy marlin
#

Hi, sorry. Could someone explain a bit about Redis to me? Please. What it is, what kinds of things it’s used for, and a little about how to use it, if it’s not too much trouble

jovial storm
glossy marlin
turbid mist
#

velocity has nothing built-in which uses Redis. (neither does Bungee for what it's worth) That depends on plugings using redis to store/send data

still gladeBOT
still gladeBOT
pulsar narwhalBOT
long galleon
#

why eating soooo many RAM?

jovial storm
#

Java program will use as much ram as you allow it to use.

scarlet urchin
#

Hey, the velocity.toml file doesn't generate fully it seems even after using latest version and #596, changing startup command multiple times and trying over and over again

#

java -Xms128M -XX:MaxRAMPercentage=95.0 -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar velocity.jar

Startup command

#

`#If you are using modern or BungeeGuard IP forwarding, configure a file that contains a unique secret here.
#The file is expected to be UTF-8 encoded and not empty.
forwarding-secret-file = "forwarding.secret"
config-version = "2.7"
#Should the proxy enforce the new public key security standard? By default, this is on.
force-key-authentication = true

What should be the MOTD? This gets displayed when the player adds your server to

their server list. Only MiniMessage format is accepted.

motd = "\<#09add3>A Velocity Server"

[advanced]
#Allows players transferred from other hosts via the
#Transfer packet (Minecraft 1.20.5) to be received.
accepts-transfers = false
`

subtle bladeBOT
scarlet urchin
long galleon
feral raven
tough mulch
#

On the github page of ProxyCompatibleForge it mentions that it's supported for forge 1.7.X, is that correct? All I can find if I want to run a 1.7.10 server is that I should use bungeeforge

feral raven
#

I don't think ProxyCompatibleForge is our creation. I'd ask them for help with that.

tough mulch
#

yeah, hard to get a hold on them, thought I'd take my chances here first

#

I saw one of the contributors was active in here so thought I could find an answer 🙂

long galleon
unique mountain
#

seems fine then?

#

if you want it to use less than 4 GB, give it less.
As long as you are not using heavy plugin like Geyser on the proxy, Velocity needs very little ram

ashen lake
#

Hey , any staff here to help me?
i have 3 servers Survival server Hub server And velocity server and when i start first hub then survival then velocity and when i enter with the localhost:25565 it just says in velocity console The connexxion was unexpectly closed
something like that

long galleon
ashen lake
#

i can give you the code for velocity.toml

long galleon
ashen lake
#

config-version = "2.7"
bind = "0.0.0.0:25565"
motd = "<#09add3>minecraft server"
show-max-players = 500
online-mode = false
force-key-authentication = true
prevent-client-proxy-connections = false
player-info-forwarding-mode = "modern"
forwarding-secret-file = "forwarding.secret"
announce-forge = false
kick-existing-players = false
ping-passthrough = "DISABLED"
sample-players-in-ping = false
enable-player-address-logging = true

[packet-limiter]
interval = 7
packets-per-second = 500
bytes-per-second = -1

[servers]
hub = "127.0.0.1:25567"
survival = "127.0.0.1:25566"
crystal = "127.0.0.1:25568"

try = [
"hub"
]

[forced-hosts]
"hub.example.com" = [
"hub"
]

[advanced]
compression-threshold = 256
compression-level = -1
login-ratelimit = 3000
connection-timeout = 5000
read-timeout = 30000
haproxy-protocol = false
tcp-fast-open = false
bungee-plugin-message-channel = true
show-ping-requests = false
failover-on-unexpected-server-disconnect = true
announce-proxy-commands = true
log-command-executions = false
log-player-connections = true
accepts-transfers = false
enable-reuse-port = false
command-rate-limit = 50
forward-commands-if-rate-limited = true
kick-after-rate-limited-commands = 0
tab-complete-rate-limit = 10
kick-after-rate-limited-tab-completes = 0

[query]
enabled = false
port = 25565
map = "Velocity"
show-plugins = false

subtle bladeBOT
ashen lake
#

uhm

#

velocity uses 2gb ram

long galleon
#

And the paper.yml looks like this?:
Velocity:
Enablade: true
Online-mode: false
Secret key: 'your secret key'

ashen lake
#

can i tell my secret key?

carmine hornet
#

Offline mode is not supported here.

long galleon
ashen lake
#

alright

#

im on minecraft premium

#

but i want everyone to join it

long galleon
ashen lake
#

like

#

i have a miencraft account premium

#

but i want everyone to join the server

#

that's all broda

long galleon
long galleon
jovial storm
livid verge
#

A hacker would need a zero-day exploit within the Minecraft server software itself to touch the OS or the PC.

long galleon
livid verge
oblique spruce
#

Hello, I have a question, before the 593 of velocity I could introduce users to my paper backend servers from velocity modifying the number of channels that could be registered, since I have a modality with heavy mods it does not let them enter without modifying that in startup but after that version it stopped working (and I must have the latest version to allow access to console players) and at the moment I had to divide it into 2 proxies do you know any way to fix it or if it is repaired in any update? The error is payload and it exceeds the allowed channels

still gladeBOT
warm mirage
#

Players can connect to the proxy, but after that they can't pass through and connect to backend server. This issue keeps occurring at random intervals while the server is running, and the timing is inconsistent, which is causing issue. Does anyone have any knowledge about this issue?

#

In the Velocity console, I can see [server connection] ~ connected log. But after waiting a bit, the client gets a timed out and then [server connection] ~ disconnected log appears on console.

when this issue occurs, it becomes impossible both for players trying to connect from server list and for players already connected to one server trying to switch to another. when attempting to switch servers, no error message is displayed for client/server either.

#

however Velocity itself hasn't shutdown, so players already connected to a server can continue their activity without being disconnected.

but if I left this issue as is, OOM(unable to create native thread) error occurs then. I think maybe because requests keep piling up even though Velocity isn't processing those operations like server switch and join etc.

feral raven
#

@sinful onyx please use #bot-spam if you needa. random unrelated bot message

#

@warm mirage latest builds specifically mention OOM, so maybe check out upgrading to latest to see if you still get issues.

warm mirage
#

hm yea I see

#

#598 patch might be a solution for me.

lapis ridge
#

the recent oom PR patches a possible OOM DOS exploit, it wont help if youre seeing OOMs without being attacked through the vector that it fixes

zenith sail
#

Having an issue, wondering if anyone encountered this before and/or knew how to fix it. I am running 2 papermc servers behind a velocity proxy, and i can join one of my servers but the other is unreachable, in the console of velocity it says:

[server connection]: xxx-> smp has connected
[server connection]: xxx-> smp has disconnected
[connected player]: xxx(/1.1.1.1:41216): unable to connect to server smp
com.velocitypowered.proxy.util.except.QuietRuntimeException: The connection to the remote server was unexpectedly closed.

But on the server I am connecting to (smp) it says nothing about a player even attempting to join. I have checked forwarding secrets, validated my geyser config(even though I am on java).

humble violet
zenith sail
distant ruin
#

im wanting to update my servers to 26.1.2 but am reading a lot of problems with the velocity and having lots of trouble trying to get it set up (upon connection) network protocol error and wont load the server any insight on the fix or any logs you like to see? have a good memorial day

distant ruin
distant ruin
# distant ruin running amp on cubecoders attempting to have a hub and a survival world behind t...
Loading translations...
Registering protocols...```

*** ViaVersion detected lowest supported version by the proxy: 1.13 (393)
Highest supported version by the proxy: 1.21.11 (774)  ***

Listening on /0.0.0.0:25565
Done (1.67s)!
Finished mapping loading, shutting down loader executor.

This command does not exist.

[connected player]: Spoonerboy (/192.168.0.50:53253) has connected
[server connection]: Spoonerboy -> hub has connected

[connected player]: Spoonerboy (/192.168.0.50:53253) has disconnected
[server connection]: Spoonerboy -> hub has disconnected

unique mountain
#

Have you tried it without ViaVersion?

distant ruin
unique mountain
#

well, what version is your backend server on and which version did you try?

distant ruin
trail adder
#

Does anyone know a good party plugin?

clear panther
#

i use parties by alessiodp but i plan to fork it for our server

trail adder
clear panther
#

it does work we've used it for 1.21.11 for a while and it still works for the latest version

#

I suppose you may need to use an older version--though i'm not sure...

dire prairie
#

Good evening

#

Is there a config file where I can change the
"This server requires you to connect with Velocity."
text?

#

Happens rarely but when it does happen I'd like to change the message to something that causes less confusion

#

Currently not seeing how to do that but if anyone knows, I'd appreciate that

calm shard
#

your players should not be connecting to backend servers ever, preferrably firewalled off

dire prairie
dire prairie
#

The server in question is ancient, so there's a few older players that connect every now and then

#

Suffering this until learning the new IP or simply not going through that effort (and leaving forever)

#

When the message could say "hey! Reconnect with this IP!" Or something

#

Simplifies the whole problem, and users don't have any need to know what Velocity is or be confused on how to "connect with" it

#

Albeit rare so I can understand why there isn't any config for it

blissful dome
#

If anything that would be a message you'd have to change on the server

frail grove
#

players being able to reach your backend is a security risk so we don't exactly want to facilitate setups like that

#

should your forwarding token somehow ever leak there'd be nothing stopping someone from logging into your server pretending to be you

dire prairie
hardy lark
#

hi... having some trouble setting up my velocity proxy

#

not really sure what the issue is

#

anyone able to help me out?

proud imp
#

I built a very easy proxy that handles all of this on your behalf. One file. One console. Separate JVM. Am I allowed to advertise the free version here?

calm shard
#

no but you're free to share it in #general