Question

I have a simple PHP script. It works for any external IP on port 80 but any other port fails. I'm assuming it has to do with the host, so what am I missing to be able to check ports other than 80?

Was it helpful?

Solution

Most hosting systems prevent outgoing connections on other ports than 80 to prevent abuse, for example botscripts connecting to IRC servers or spamscripts connecting to SMTP hosts on 25.

Example hoster explanation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top