The default Java gaming port is 25565 TCP, the classic Bedrock IPv4 port is 19132 UDP. The configuration of the server and the transport format used may change these values.
Step by step
-
For Java, look at
server-portinserver.properties. If you are using a proxy, the address to which players connect is the port of the proxy, not the back server. -
Look at the
server-portandserver-portv6values in Bedrock Dedicated Server. If you are using Geyser, read the port and transport settings on the Bedrock side from the Geyser configuration. -
Open modem and firewall rules for the correct protocol. Just passing the TCP test does not verify the classic Bedrock UDP connection.
-
Write the private port Java address in the format
play.example.net:25566and the Bedrock address and port in separate fields of the client and test.
Keep in mind
Some Geyser transport options impose requirements other than classic UDP. Check the relevant section in the documentation for the installed version.