Fog Creek Software
Discussion Board

PERL Script on WIndows using ICMP

Why if i use perl-ping functionality my script works as a regular use on a terminal server, but when i switch the ping code to use ICMP it fails with permissions.  Does anyone know what permissions specifically i need to give the user to run a script using ICMP on windows?

mike hindman
Wednesday, March 31, 2004

If you're using raw sockets to do your ICMP, you'll need to run as an administrator.

Non-administrators can do pings through Microsoft's ICMP API. Historically, they've provided it through the poorly-documented ICMP.DLL. As of Win2K, they appear to be officially including the same ICMP functions in the larger IP Helper API.

Dr. Datagram
Wednesday, March 31, 2004

*  Recent Topics

*  Fog Creek Home