how to find out which port youre hosting minecraft server from code example
Example: minecraft server startup code
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar nogui
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar nogui