Android Question ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to

Mr.Ghafary

New Member
Hi
I Have Simple Login Code But I Get This Error
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to skynet2.ir/86.106.142.102 (port 443) from /22.135.29.213 (port 57388) after 30000ms: isConnected failed: ETIMEDOUT (Connection timed out), Response:

My Code
MyCode:
ProgressDialogShow2("در حال اتصال به سرور...",False)
    Dim Login_http As HttpJob
    Login_http.Initialize("Login", Me)
    Login_http.Download2("https://skynet2.ir/hamid/RahvarPHP/Login.php", Send)
    Wait For (Login_http) JobDone (Login_http As HttpJob)
    If Login_http.Success = True Then
        strReturnServer = Login_http.GetString
        If strReturnServer = "Wrong"  Then
            ProgressDialogHide
            MsgboxAsync(CS.Initialize.Typeface(Typeface.LoadFromAssets("font.ttf")).Append("نام کاربری یا کلمه عبور اشتباه است!").PopAll,"")
            Wait For MsgBox_Result (Result As Int)
        Else If  strReturnServer = "Exception" Then
            ProgressDialogHide
            MsgboxAsync(CS.Initialize.Typeface(Typeface.LoadFromAssets("font.ttf")).Append("خطا در اتصال به سرور!").PopAll,"")
            Wait For MsgBox_Result (Result As Int)
        else if strReturnServer = "" Then
            ProgressDialogHide
        MsgboxAsync(CS.Initialize.Typeface(Typeface.LoadFromAssets("font.ttf")).Append("خطا در اتصال به سرور!").PopAll,"")
            Wait For MsgBox_Result (Result As Int)
        else If  strReturnServer = "Admin" Then
            AdminMember.Adminmemberloaded = False
            IsAdmin = True
            StartActivity("AdminMember")
        Else
            Member.memberloaded = False
            IsAdmin = False           
            StartActivity("Member")   
        End If
    Else
        ProgressDialogHide
    MsgboxAsync(CS.Initialize.Typeface(Typeface.LoadFromAssets("font.ttf")).Append("خطایی رخ داده است!").PopAll,"")
        Wait For MsgBox_Result (Result As Int)
    End If
    ProgressDialogHide
    Login_http.Release

Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat.Light")
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.FOREGROUND_SERVICE)
AddPermission(android.permission.WAKE_LOCK)
CreateResourceFromFile(Macro, Core.NetworkClearText)
SetApplicationAttribute(android:usesCleartextTraffic, "true")

I Added HU2_ACCEPTALL And I get
(Http client initialized with accept all option.)
in log

Here Is Http Sql Code Address
If password Correct Get Admin String From Server
 
Top