Hosting & Running Lavalink Servers
This guide details how to deploy and configure a dedicated Lavalink audio standalone node on your CordenX panel for Discord music bots (such as LavaLink-client, Erela.js, or DisTube).
1. Prerequisites & Java Requirement
Lavalink requires Java 17 or Java 21 depending on the Lavalink version you run:
- Lavalink v4: Requires Java 17+ (Java 21 recommended)
- Lavalink v3: Requires Java 13 - Java 17
2. Setting Up Your Files
- Download the latest
Lavalink.jarrelease file from the official GitHub repository. - In your CordenX panel, select your Lavalink server instance.
- Open File Manager and upload
Lavalink.jar. - Create a new file in File Manager named
application.yml.
3. Configuring application.yml
Paste the following base configuration into application.yml:
yaml
server:
port: 2333
address: 0.0.0.0
lavalink: plugins:
Add plugins here if required (e.g. youtube-plugin)
server: password: "YOUR_SECURE_PASSWORD_HERE" sources: youtube: true bandcamp: true soundcloud: true twitch: true vimeo: true http: false local: false filters: # Enables audio filters (equalizer, timescale, volume, etc.) volume: true equalizer: true karaoke: true timescale: true tremolo: true vibrato: true distortion: true rotation: true channelMix: true lowPass: true bufferDurationMs: 400 frameBufferDurationMs: 5000 opusEncodingQuality: 10 resamplingQuality: HIGH trackStuckThresholdMs: 10000 useSeekGhosting: true youtubePlaylistLoadLimit: 6 playerUpdateInterval: 5
metrics: prometheus: enabled: false endpoint: /prometheus
logging: file: path: ./logs/Lavalink.log
level: root: INFO lavalink: INFO
Important: Change
YOUR_SECURE_PASSWORD_HEREto a strong custom password and ensure theserver.portmatches your assigned primary network allocation port.
4. Port Allocations & Connecting Your Bot
- Go to the Network tab in your panel sidebar to verify your primary server port (e.g.,
2333or a custom port like10542). - Ensure
server.portinapplication.ymlmatches this primary port. - In your Discord bot's connection script, connect using:
- Host: Node IP or hostname (e.g.,
node1.cordenx.xyz) - Port: Your assigned primary port
- Password: The password set in
application.yml
- Host: Node IP or hostname (e.g.,
5. Starting the Node
- Navigate to Console.
- Click Start.
- Watch the console logs for confirmation:
Lavalink is ready to accept connections.