dcsimg
Results 1 to 2 of 2

Thread: Get Adresse IP via WinHttpRequest under http / httpS

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2016
    Location
    Jurbise - Belgium
    Posts
    147

    Get Adresse IP via WinHttpRequest under http / httpS

    Hello,
    To get the IP address of a VB6 software user I'm using
    Code:
    strURL = "http://www.rudyv.be/GetIP.php"
    Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
    objHTTP.Open "GET", strURL
    objHTTP.Send
    If objHTTP.Status = 200 Then MyIP = objHTTP.ResponseText
    Set objHTTP = Nothing
    GetIP.php contains
    Code:
    Echo $_SERVER['REMOTE_ADDR'];
    This worked fine until my site hosting GetIP.php changed from http to httpS
    I sometimes get the error -2147012739: An error occurred during the secure connection.
    How can I avoid this error ?

  2. #2
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    529

    Re: Get Adresse IP via WinHttpRequest under http / httpS

    That error in Hex is 0x80072F7D, searching the web for that suggests invalid security certificate.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width