I´m tryng a request in my intranet by local ip. But NOT working
The log: "Errojava.net.SocketTimeoutException: timeout - anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpResponse@bd66fa9"
Why?
The log: "Errojava.net.SocketTimeoutException: timeout - anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpResponse@bd66fa9"
B4X:
mIP = "192.168.1.145"
Dim ServerUrl As String = "http://" & mIP & "/Campeonato/TempoTimer.asp?T=00:" & XXX
Dim j As HttpJob
j.Initialize("",Me)
j.GetRequest.Timeout = 1000
j.Download(ServerUrl) ' j.Download("http://" & IP)
Wait For (j) JobDone(j As HttpJob)
ProgressDialogHide
If j.Success Then
xOkPing = xOkPing + 1
Log("OK " & XXX)
Else ' FireWall bloqueando
xErrPing = xErrPing + 1
ToastMessageShow("Erro na Rede para RESETAR tempo" & j.Response, True)
Log("Erro" & j.ErrorMessage & " - " & j.Response)
End If
j.Release
Why?