Are you trying to connect locally through your wired/wireless network or via the internet?
If local, check your firewall settings. Else, check firewall/nat rules - you probably need to setup port forwarding. Check out
portforward.com if you need help doing this.