Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top