If it works fine on the localhost (127.0.0.1) but not on your IP, then it can only be a few things.
1. Ports
2. Firewalls (If you use a router, some of them contain a firewall themselves).
3. Your ISP may block the needed port.
What you can do is:
1. Go to this site
2. Enter your port number and see if the site tells you if its opened or not. The site should give you an error number. At the bottom of the page it will tell you pretty much what the error means.