I am checking for open/closed status of ports on a PC using:
1 $fp= fsockopen("udp://host", port, &errno, &errstr);
2 fwrite($fp,"\n");
My ZoneAlarm firewall (if its on) shows an alert & blocks on the second line.
With firewall on or off, I never get an error message. With firewall off, I was expecting an error message on a closed port (port unreachable?).
I have tried an fread($fp, 1) with no success.
What can I add to determine if a UDP port on a PC is open or closed?
Thx, Doug