I hosted a server a couple of days ago and was working fine, but the next day my friends couldn't join using my external IP, and neither could I. I'm using Tekkit but it isn't the cause of the issue as it was working fine yesterday

However, I can still join using the address localhost and my IPv4 address. I don't know what's going on! Could someone help? Here is my server settings file:

#Minecraft server properties #Fri Sep 13 19:38:59 CST 2013 allow-nether=true level-name=world enable-query=false allow-flight=false server-port=25565 level-type=DEFAULT enable-rcon=false level-seed= server-ip= max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true online-mode=true pvp=true difficulty=1 gamemode=0 max-players=20 spawn-monsters=true generate-structures=true view-distance=10 motd=A Minecraft Server 
9

2 Answers

It sounds like you have a dynamic external IP which means it changes periodically. Type "what is my ip" into google to find your current IP. If you want a static IP (i.e. One that doesn't change), you'll have to contact your ISP.

This happens many times to me, all you have to do is do 'ipconfig' in CMD prompt or 'ifconfig' in linux command line and search for your IPv4 address and then go to your router BIOS by typing in the default gateway into your browser. Then change your port forwarding settings to your new ip, and it should work fine.