Typically this means that your hosting provider has prevented PHP from making outbound network connections. Have you contacted hosting support? They'll almost certainly be able to explain what's happening, and usually hosting providers are will to open up this restriction for their customers.