With pinggy.io, you can easily share your Minecraft server from localhost with just a single command. Replace the port 25565 with the port where your server is running.
Using the Minecraft Server JAR file:
Download the Minecraft server software:
Setting up the server:
Launch the server:
java -Xmx1024M -Xms1024M -jar server.jar nogui
server.jar
with the actual name of your server file if different.Configuring the server:
server.properties
file for more advanced configurations.