Could highly possibly be a firewall problem. See both posts here
Connection problems? Check here first! (click on link).
Look at (a) Configuring Software firewall, (b) enabling UPnP if your modem/router supports it but has an internal NAT firewall,
(c) forwarding a port if your device doesn't support UPnP. (d) Check last post for info we need if you're lost!