I made a Minecraft server recently using spigot. It works perfect when I connect to it from the wifi that I am hosting it from, but when I try to connect from other wifi's it won't work. I connect through a domain name that I created using noip.com.
You need to do something called port forwarding. In essence, port forwarding is mapping one IP address and port to another. Most commonly, one maps an external IP and port (that can be accessed by everyone) into an internal IP and port (which cannot), thus allowed the internal IP and port to be accessible from the outside.
In your case, you need to map your internal IP and port (your computer hosting your server) into an external IP and port (so everyone can visit it). I'm not going to explain how to port forward here; it is fairly complicated. But, I will provide you with some links: