Yes, you can use any available port.
Yes, you can use any available port.
Is this about configuring port forwarding on your router? You'll need to utilize port 25565.
You won't need to do that unless you want to. The IP address and port are required for connection. For example, if the Minecraft port is 12345, you'd input the server's IP like 1.1.1.1:12345. You can choose any port between 1024 and 65535, but it's safer to use above 49152 or the default 25565. You also have the option to use a different external port and forward to the default one in Minecraft.
The Minecraft client will check port 25565. If the server is reachable on a different port via its public IP address, the client must be informed about that. You can specify the port when adding the server to the client (instead of using 123.100.100.50, you would input 123.100.100.50:30000 if the port is 30000) or by utilizing a SRV DNS record. Some instructions may vary depending on your DNS provider; you can find guidance at https://www.namecheap.com/support/knowle...aft-server.
Interesting. I hadn’t realized that was the method for hosting LAN worlds. I thought it was only applicable to LAN setups, but I didn’t know servers could be handled similarly. The setup guide I followed recommended using port 25565, likely because it’s simpler that way.
When managing multiple servers, assign unique ports to each. Provide IP addresses in this format: 0.0.0.0(your ip):00000(port). For two servers, keep one on the default port (25565) and the other on a different port (e.g., 12345). This helps identify which server is active from an external IP. If running only one server, use 25565 for simplicity.
It would only happen when multiple Minecraft servers were running. If that was the case, each server should use a different port—unless you have more than one public IP address. Did you see my earlier message with guidance on how to tell clients which port a server uses?