I’ve changed the minecraft server’s port to a different one and created an SRV and A record for it, but the minecraft server still works when I go to “domain.com” and I only want it to work when I go on “mc.domain.com” or “domain.com:0000”.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You’ll first need to edit the configuration file of your Minecraft Server and set the port to be 0000, I think by default it’s something like 25026.
As soon as you’ve done that, you’ll need to restart your Minecraft server. To test everything is actually working type in
netstat -tulpen | grep 0000
If you see the instance running then everything is okay. Now you’ll need to edit your firewall configuration.
If you are using UFW, you can enable the port by executing the following command
sudo ufw allow 0000/tcp
To actually check if it’s enabled or not, type in
sudo ufw status numbered
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.