These are chat archives for IndySockets/Indy

14th
Feb 2017
Matthijs ter Woord
@mterwoord
Feb 14 2017 15:34
when pinging on windows, do i need admin rights?
Kudzu
@czhower
Feb 14 2017 15:57
as a ping client? no...
Matthijs ter Woord
@mterwoord
Feb 14 2017 16:03
shoot, then the app gives a different issue..
:(
i am getting socket error 10013 on the AllocateSocket when pinging...
a bit old, but same eror...
Remy Lebeau
@rlebeau
Feb 14 2017 17:22
@Mterwoord If you are pinging in code using TIdIcmpClient, then YES, you need admin rights, as TIdIcmpClient uses a RAW socket, not any OS-provided ping APIs. RAW sockets are restricted to admins on most platforms, including Windows: https://support.microsoft.com/en-us/help/195445/: "A Socket or WSASocket call that specifies the SOCK_RAW socket type fails with the following Winsock error message (10013 WSAEACCES) if the user is a non-administrator"
Matthijs ter Woord
@mterwoord
Feb 14 2017 17:25
yeah, got a followup error. customer said "i get the same error"
which translated to "i get the same red icon" :|
Remy Lebeau
@rlebeau
Feb 14 2017 17:30
@mterwoord On Windows, you can send pings without admin rights using Microsoft's IcmpSendEcho() function: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366050.aspx
Matthijs ter Woord
@mterwoord
Feb 14 2017 17:31
now only to find a delphi (6 ) binding of it..