Android: Firefox shows "Proxy Server Refused Connection" when using VPN

EDIT2:

This is fixed in Firefox beta and nightly. See 1858377 - Proxy Use KO On Android 12 13 14 After Latest Google Update for details.

The patch hasn’t been backported to release channel yet.


EDIT:

Ticket filed at: 1857810 - Firefox shows "Proxy Server Refused Connection" when using VPN

It seems to related to how Firefox (incorrectly?) handles system proxy, which my VPN app might add one. Not sure if related to Android version; I’m using 13 FWIW.


I often use VPN on my phone for certain circumstances. I’ve been using the same VPN for years, and it worked fine with Firefox.

Recently (not sure when exactly), I found that as soon as I enabled VPN, Firefox failed to connect to the Internet.

Every page shows “Proxy Server Refused Connection”.

Some more info:

  1. I have zero network issues with any other apps. Firefox is the only app having this issue.
  2. I’ve tried Beta, Nightly, no difference.
  3. I’ve tried clean all the data, reinstall, etc., no difference.
  4. It still works on my backup phone, with exactly same VPN and same settings.

Something interesting: the home page of Firefox somehow still has Internet access as it can load these Pocket “stories” just fine. But as soon as I started to open any website, it immediately shows “Proxy Server Refused Connection”.

I wish to debug further but I don’t know how. Unlike desktop version, there is no proxy setting in Firefox Android.

What should I do?

Thanks in advance.

Please give me an update if you find a solution to this, I’m having the exact same problem.

Having the same problem, VPN or not.

I’m having the same issue, and I’m on Android 14, don’t know if that’s the reason.

Does a non Firefox browser work?

Also, do you use private DNS in Firefox or the system?

I’m running a proxy on my home network and I have the same issue: instead of using the proxy configured in wifi settings (i.e proxy.mynetwork:8080) I did a capture and Firefox is using TCP 80 to connect to proxy so it fail.

Firefox is the ONLY app having such issue. All others are using the proxy. It’s recent, probably less than a week.

I’m having the same issue in the last few days out of nowhere.

VPN works with all other apps, with Firefox am unable to do anything on my phone. It’s weird.

I faced exactly the same issue after upgrading to Android 14 today. And actually this problem had happened before the upgrade several times on Android 13 on my phone, but a factory reset could fix that. However, even on a freshly installed Android 14 the issue exists.

As a workaround, one can install the foxyproxy standard add-on and set a proxy manually. Hope that this bug will be fixed soon.

I reboot my phone(galaxy s23u) and this issue show up

I’ve tried Beta, Nightly, no difference.

Have you tried the new nightly?

If you’re using clash, turning off “System Proxy (Attach http proxy to VpnService)” fixes this error.

Seems it has been fixed in v119.1.1

Nah, I’m still on 13. No update from my phone caused the issue. Must be a Firefox app issue. Downgrading also doesn’t fix it.

Yes, every other apps, including any browsers, work.

I can’t even visit 1.1.1.1 so I doubt DNS is a factor.

Thanks for the details.

Since there are at least two other people encountering this, I filed a bug ticket: 1857810 - Firefox shows "Proxy Server Refused Connection" when using VPN

Feel free to chime in to add more details if you have any.

how did you setup the proxy manually? Are you using clash for vpn?

If it’s the same bug then it will be fixed in version 121, now only available as nightly: 1858377 - Proxy Use KO On Android 12 13 14 After Latest Google Update

Thanks for the easy fix!

I’m able to fix it by switching to another VPN app, to think of it, the problem seemed to appear after I recently updated my usual VPN app.
And I found out that toggle off the option, Append HTTP proxy to VPN, could solve the problem for my old VPN app

Yes. You can set the http proxy port in clash (by configuration file or overwrite) and use the foxyproxy standard add-on in firefox like on pc. Set the proxy server to localhost and http(or socks5, depending on your clash configuration) port.