The server is up and running according to this but I cant connect to it on minecraft.
root@minecraft-server-1-4:/opt/minecraft# cd /opt/minecraft && java -Xms1024M -Xmx2000M -jar /opt/minecraft/forge-1.16.5-36.2.19.jar nogui
[03:18:41] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.19, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
[03:18:41] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 11.0.11 by UbuntuWARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by cpw.mods.modlauncher.SecureJarHandler (file:/opt/minecraft/libraries/cpw/mods/modlauncher/8.0.9/modlauncher-8.0.9.jar) to field java.util.jar.Manifest.jvWARNING: Please consider reporting this to the maintainers of cpw.mods.modlauncher.SecureJarHandlerWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operationsWARNING: All illegal access operations will be denied in a future release
[03:19:44] [Worker-Main-2/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 96%
[03:19:44] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Time elapsed: 26976 ms
[03:19:44] [Server thread/INFO] [minecraft/DedicatedServer]: Done (27.457s)! For help, type "help"