Skip to content

Setting up on Linux

Matthew Hafner edited this page Jul 16, 2024 · 8 revisions

The following guide will show you how to get BedrockConnect up and running along with a DNS server.

Install Java

To install Java 8:

Ubuntu: sudo apt install openjdk-8-jre-headless

CentOS: sudo yum install java-1.8.0-openjdk

Install BIND9

Download the following script: https://raw.githubusercontent.com/Pugmatt/BedrockConnect/master/scripts/install-bind.sh

Run: sudo install-bind.sh [IP]

[BCIP] - Replace with public IP of your network that players will use

Download and run BedrockConnect

Download the latest "BedrockConnect-1.0-SNAPSHOT.jar" from: https://github.com/Pugmatt/BedrockConnect/releases

Run: java -jar BedrockConnect-1.0-SNAPSHOT.jar nodb=true

(If this server is made to be accessed outside of the Linux server's network, make sure port 53 and port 19132 is opened)

NOTE: If you are hosting your DNS server to the public, it is highly recommended that recursion on the DNS server stays disabled, in order to mitigate possible DNS amplification attacks. (The install-bind.sh script has recursion disabled by default)

Everything should then be correctly up and running. You would then set the primary DNS on your devices to the public IP address that you have the server running on, and the secondary DNS to a well-known DNS such as 8.8.8.8.