Read this sticky, there's a lot of info about connection/firewall issues. There might be a firewall within your modem/router, so check the info about UPnP & port forwarding.
Connection problems? Check here first!
If you want more help, we're going to need some details.
System details - help us to help you