For any questions or issues, feel free to join our Discord server for assistance.
- Setup the server:
- Run Windows PowerShell as administrator
cd "C:\"
bitsadmin /transfer myDownloadJob /download /priority normal https://raw.githubusercontent.com/LucasB25/lavalink-server/main/LavalinkWindows/ServerSetup.ps1 C:\ServerSetup.ps1
& .\ServerSetup.ps1
-
⚠️ Restart windows⚠️ -
Run again ServerSetup.ps1
- Run Windows PowerShell as administrator
cd "C:\"
& .\ServerSetup.ps1
- Setup Lavalink:
- Run Windows PowerShell as administrator
cd "C:\"
bitsadmin /transfer myDownloadJob /download /priority normal https://raw.githubusercontent.com/LucasB25/lavalink-server/main/LavalinkWindows/LavalinkSetup.ps1 C:\LavalinkSetup.ps1
& .\LavalinkSetup.ps1
- How to start it 24/7:
cd "C:\LavalinkServer"
pm2 start --name Lavalink --max-memory-restart 4G java -- -jar Lavalink.jar
- Install sudo and wget:
sudo apt-get install -y sudo wget
- Switch to root user and navigate to the home directory:
sudo su
cd ~
- Setup the server:
wget -O ServerSetup.sh https://raw.githubusercontent.com/LucasB25/lavalink-server/main/LavalinkLinux/ServerSetup.sh
chmod +rwx ServerSetup.sh
./ServerSetup.sh
- Switch to root user and navigate to the home directory:
sudo su
cd ~
- Setup Lavalink:
wget -O LavalinkSetup.sh https://raw.githubusercontent.com/LucasB25/lavalink-server/main/LavalinkLinux/LavalinkSetup.sh
chmod +rwx LavalinkSetup.sh
./LavalinkSetup.sh
- Reload Systemd daemon:
$ sudo systemctl daemon-reload
- Enable a service at boot:
$ sudo systemctl enable lavalink
- Start a service:
$ sudo systemctl start lavalink
- View service logs:
$ sudo journalctl -u lavalink
- Check service status:
$ sudo systemctl status lavalink
- Stop a service:
$ sudo systemctl stop lavalink
- Restart a service:
$ sudo systemctl restart lavalink
Connecting
- Lavalink's port will always be 443 in Replit.
- Default password:
youshallnotpass
. - Using custom Lavalink client.
Important notes
- To keep this 24/7, you need to make an account on UptimeRobot service and make HTTP request to your app every 5 minutes. For example, if your app is named
lavalink-repl
and your Replit username isahmasa
, then make an HTTP request tohttps://lavalink-repl.ahmasa.repl.co
. - Do not forget to set your password (in
application.yml
file). - Connection to node must be secured, e.g.,
https/wss
.
Example Configuration
{
"host": "lavalink.LucasB25.repl.co",
"password": "youshallnotpass",
"port": 443,
"identifier": "lavalink v4",
"secure": true
}