proxidize-android icon indicating copy to clipboard operation
proxidize-android copied to clipboard

IP Change Link response is 0 and solution for app disconnect from proxy server

Open sergeykomlev opened this issue 2 years ago • 10 comments

I tried to change the port by the link and I have the following response:

Status: 0 (Connection establish problem (read logs))

Is this pattern correct?

IP:PORT/change_ip?t=TOKEN

As I see in proxy server logs connection was established, but the port has not changed by the Proxidize app.

2022/10/03 22:01:02 [I] [...] [...] [...] get a new work connection: [...]

sergeykomlev avatar Oct 03 '22 22:10 sergeykomlev

Do you mean change the IP by link?

AbedElezz avatar Oct 03 '22 22:10 AbedElezz

Do you mean change the IP by link?

Yes.

Now I also switched off IP rotation feature. I found that in some reason app is disconnected because of IP rotation freeze. I enabled MacroDroid for IP rotation now.

sergeykomlev avatar Oct 04 '22 08:10 sergeykomlev

Yeah, my problem that Proxidize app disconnect from proxy server from time to time.

I created a MacroDroid to open app and push a connect button again.

It’s will be good to have a custom static login/password for mobile device proxy, because sometimes new login/password generated, maybe because of app crash/close/termination.

sergeykomlev avatar Oct 04 '22 13:10 sergeykomlev

My solution for connection break with proxy server based on MacroDroid macros. Hope this will help someone. Auto change of IP should be set to 0.

My MacroDroid macros template: macros.zip

37F09DBA-85F9-41CF-9D04-8CE8964C8EAC

sergeykomlev avatar Oct 04 '22 16:10 sergeykomlev

What phone and Android versions are you using? Can you post a screenshot of your software information page on your phone?

AbedElezz avatar Oct 05 '22 07:10 AbedElezz

What phone and Android versions are you using? Can you post a screenshot of your software information page on your phone?

Yes, it’s Redmi Note 5 (rooted). I don’t think this will help a lot, because it’s can happen from time to time. Sometimes connection with server can have a freeze. MacroDroid is good solution for that.

But I have another important question.

When my device offline or have any issue with connection I see that custom proxy server with Proxidize work just as a datacenter proxy server. That’s mean all connections go throw this server, because connection with device is not established.

Is it possible to prevent this behavior and skip outgoing connections via custom proxy server with Proxidize and only allow connection via mobile device?

Because this issue can cause huge problems in my case.

sergeykomlev avatar Oct 05 '22 17:10 sergeykomlev

I think what's happening here is your phone is closing the app due to battery optimization. Can you check the status on that from your settings?

Is it possible to prevent this behavior and skip outgoing connections via custom proxy server with Proxidize and only allow connection via mobile device?

In theory, yes. But it depends on your carrier. Read this: https://github.com/proxidize/proxidize-android#using-the-app-without-connecting-to-the-tunneling-server-first

AbedElezz avatar Oct 11 '22 18:10 AbedElezz

I checked the battery settings. All is fine, optimization options are disabled. I think it's a phone issue.

sergeykomlev avatar Oct 11 '22 22:10 sergeykomlev

Does this happen after a reboot as you've mentioned in the other issue?

AbedElezz avatar Oct 12 '22 22:10 AbedElezz

Does this happen after a reboot as you've mentioned in the other issue?

I don’t know, but I think yes.

sergeykomlev avatar Oct 13 '22 07:10 sergeykomlev

I think this is going to be mostly related to the reboot. I'll see what I can do in future updates, but ideally, the phone shouldn't reboot.

AbedElezz avatar Nov 24 '22 20:11 AbedElezz

Closing this until I hear back from you @sergeykomlev

AbedElezz avatar Dec 01 '22 23:12 AbedElezz