IdIcmpClient1 error lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- sadikacar60 · 2021-10-31 06:22 The code that works without error in delphi 7 may cause an error in lazarus. thanks Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   IdIcmpClient1.Host:= '127.0.0.1';idICMPClient1.Ping();Memo1.Lines.Add('Bytes received: ' +IntToStr(idICMPClient1.ReplyStatus.BytesReceived)); ---------------------------------------------------------------------- Remy Lebeau · 2021-11-01 18:08 Quote from: sadikacar60 on October 31, 2021, 07:22:59 amThe code that works without error in delphi 7 may cause an error in lazarus. Can you be more specific?  What is the actual error?  Is it a compile- time error, or a run-time error? If run-time, then is your app running with admin rights?  TIdICMPClient uses a RAW socket to implement ICMP manually, and using a RAW socket requires admin rights on most modern platforms. Which version of Indy are you using in Lazarus?  Delphi 7 is VERY OLD, which version of Indy were you using in it at the time? Were you using the version that came bundled with it?  If so, that would be a VERY OLD version of Indy, a LOT has changed in Indy over the years. However, the code you have shown should work in the latest version of Indy.