Check an IP address against an online list in Inno Setup
问题 I am getting the user IP address using the below code function GetIp: string; var WinHttpReq: Variant; begin try WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1'); WinHttpReq.Open('GET', 'http://ipinfo.io/ip', False); WinHttpReq.Send; Result := Trim(WinHttpReq.ResponseText); except Log(GetExceptionMessage); Result := '8.8.8.8'; end; end; After getting the users IP address I need to check if that IP address already exists in my online JSON list. Thanks 回答1: The simplest solution is