Start by reading this
Connection problems? Check here first!
Make sure you're only using 1 software firewall & that it's configured properly. Your modem/router might have an internal firewall that's causing problems...read the bits about enabling UPnP & port forwarding.
If you're stuck, give some details
System details - help us to help you