Minecraft wiki entry for Setting_up_a_server, associated text: Java edition since 1.3 also supports using custom ports without requiring the player to type it. This is achieved by using a SRV record (for "service") in the DNS. The SRV record tells Minecraft the actual host and port to use; some DynDNS services and most static DNS services allow you to set it up.[1]