Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Cannot connect to internet when Proxyman is not open

Open dennisvera opened this issue 4 years ago • 15 comments

Proxyman version? (Ex. Proxyman 1.4.3)

version 2.34.1 (23410)Version 2.34.1 (23410)

macOS Version? (Ex. mac 10.14)

big sur 11.5.2

Steps to reproduce

  • quit proxyman
  • launch google chrome (google.com)

Expected behavior

google.com opens up

Screenshots (optional)

Screen Shot 2021-10-15 at 11 25 38 AM

dennisvera avatar Oct 15 '21 15:10 dennisvera

Hey @dennisvera, it seems that you haven't installed the Helper Tool in Preference -> Advanced 🤔

You could not access the Internet after quitting Proxyman, which indicates that Proxyman could not revert the HTTP Proxy properly.

Please try to install the Helper Tool 👍

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

I appreciate the quick response! it looks like i had already installed the helper tools. will unistall and reinstall! Screen Shot 2021-10-15 at 11 31 57 AM

dennisvera avatar Oct 15 '21 15:10 dennisvera

Do you use Cloudflare WRAP? If yes, please update the lasted build. WRAP has a bug that conflicts with all web debugging Proxy recently.

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

I do not have Cloudflare installed. I tried unistalling > reinstalling...did not work

dennisvera avatar Oct 15 '21 15:10 dennisvera

I am loosing lots of work time, all of last night and alll of this morning

dennisvera avatar Oct 15 '21 15:10 dennisvera

Sorry for this inconvenience 😞

To fix it, when you could not access the Internet, please open System Preference -> Network -> Wifi -> Advanced -> Proxies Tab -> Uncheck the HTTP and HTTPS Proxy -> Apply.

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

I'm not sure what causes the problem. I'm investigating. Please let me know this trick resolves your problem.

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

that worked for me. thank you 🙏 now, Is there anything i need to worry about having the HTTP and HTTPS Proxy (unchecked)

dennisvera avatar Oct 15 '21 15:10 dennisvera

Basically, when your open Proxyman, the Helper Tool will automatically override the HTTP/HTTPS Proxy to Proxyman (127.0.0.1:9090) and revert it when you quit the app.

However, Proxyman might not revert the HTTP Proxy if it's checked before Proxyman is overridden. It's useful for users, who are currently using a different Proxy before opening Proxyman.

Your issue, I guess that you open other proxy apps (like Charles Proxy), then open Proxyman. Then quit both apps. Proxyman will persist the HTTP/HTTPS Check -> You could not access the Internet.

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

Thanks for the background on this, helpful! that is very likely the scenario as I had recently opened Charles as well. I will test it all again without opening Charles and see if it all works as expected (internet still works after quitting Proxyman.

Thank you for the quick response, much appreciated!

dennisvera avatar Oct 15 '21 15:10 dennisvera

You're welcome 👍

NghiaTranUIT avatar Oct 15 '21 15:10 NghiaTranUIT

Confirming HTTP/HTTPS properly checks/unchecks when Proxyman launches/quits

dennisvera avatar Oct 15 '21 15:10 dennisvera

Thanks for this:

"To fix it, when you could not access the Internet, please open System Preference -> Network -> Wifi -> Advanced -> Proxies Tab -> Uncheck the HTTP and HTTPS Proxy -> Apply."

I was stuck with no internet access until I found your comment.

DavidAPears avatar Apr 20 '22 05:04 DavidAPears

Sorry for this inconvenience @DavidAPears. Proxyman should automatically revert the proxy when you close the app or the app unexpectedly crashed.

However, the helper tool must be installed.

Can you verify that the helper tool is installed? @DavidAPears

https://github.com/ProxymanApp/Proxyman/issues/1034#issuecomment-944396752

NghiaTranUIT avatar Apr 20 '22 09:04 NghiaTranUIT

Hello, I'm using AnyConnect VPN and have the same problem below is the two scenarios:

Steps:

  1. Connect to VPN using AnyConnect At this point, the Web Proxy settings are unchecked

  2. Open Proxyman Proxyman enables the Web Proxy settings (checked) At this point:

    • Proxyman is not able to capture any traffic
    • Internet works
  3. Close Proxyman Internet works


Steps:

  1. Ensure the Web Proxy settings are unchecked

  2. Open Proxyman Proxyman enables the Web Proxy settings (checked)

  3. Connect to VPN using AnyConnect The Web Proxy settings remain checked

    At this point:

    • Proxyman is able to capture any traffic
    • Internet works
  4. Close Proxyman Proxyman disables the Web Proxy settings (unchecked) Internet no longer works.


It looks like either:

  • if web Proxy settings is enabled when AnyConnect connects, it boots up accordingly and requires it to maintain internet connection. If we disable the web proxy, we have to reboot the VPN as well
  • When Proxyman closes, even if it unchecks the Web Proxy settings, it doesn't shutdown the Proxyserver/release the HTTP traffic properly (idk how Proxyman works)

Current work around:

  • Open Proxyman first (mandatory)
  • After closing Proxyman, either enable Web Proxy settings back manually or reconnect VPN (AnyConnect)

tilwinjoy avatar Sep 08 '22 02:09 tilwinjoy

I solved it by check the option. 截屏2022-10-08 22 36 30

SaiRS avatar Oct 08 '22 14:10 SaiRS

It's not the correct solution @SaiRS. This feature is helpful if you're using another Proxy simultaneously with Proxyman.

By default, Proxyman will revert all Proxy Config when closing the app. However, if you're using a different Proxy, you might not access the Internet. Enables this feature, Proxyman tries to restore to the original state.

NghiaTranUIT avatar Oct 10 '22 02:10 NghiaTranUIT

Hey Guys, how your doing?

I'm tried to use the last version of Windows app with my physical android device and i'm get the same problem: i just can't use my phone.

All of my wi-fi network stops, 4G network don't work properly too (only websockets are working whatsapp, discord)

And i just followed the steps on screen:

  • Configure Proxy on the network of the device
  • Install the auto generated certificate CA
  • ... work
  • Remove the proxy configuration
  • Delete the CA

The Wi-fi networks don't connect to any site, BUT when i powerup my computer and start proxyman the app capture all of my mobile traffic.

At this exact time i'm trying to factory restore mobile to fix this.

Proxyman: 1.4.0

kauanslr avatar Mar 04 '23 10:03 kauanslr

@kauanslr to fix it, you just need to turn off the HTTP Proxy on your Wifi Setting (on your Android device).

When you config the HTTP Proxy on your Android, by pointing to your IP, at port 9090. Please make sure the Proxyman app is opening. If you close the Proxyman app, you should revert the HTTP Proxy on your Android too 👍

Otherwise, you could not access to the Internet.

NghiaTranUIT avatar Mar 04 '23 10:03 NghiaTranUIT

Hey @NghiaTranUIT thanks for the flash like response 🚀 Yep, i've turned off the Proxy config on my wi-fi settings, but it keep connecting to proxyman.

Last night i've restored the device network config to default and it does not worked too

kauanslr avatar Mar 04 '23 11:03 kauanslr

Yep, just a facory reset and everything is working. I think this can be a Android bug (?????? why i cant disable a proxy config, Google)

kauanslr avatar Mar 04 '23 11:03 kauanslr

Yep, i've turned off the Proxy config on my wi-fi settings, but it keep connecting to proxyman.

If you turn it off on your Android, but it still connects to Proxyman, it's definately a bug from Android OS.

NghiaTranUIT avatar Mar 04 '23 12:03 NghiaTranUIT

Hi,

I am a Windows user and used Proxyman on emulator. Then I plugged a physical device to my machine with a usb cable and now if I close Proxyman I have no internet on my physical device. I have not installed any certificates on the physical devices, it was just a connection with an USB cable. How do I fix that? All I can find on the internet is this post. It does not just affect the wifi connection, but mobile data just as well. It's as if proxyman set something (a proxy...) on Android that applies to all connections and I can't find a way to clear it. How come?

monika-rudko avatar May 11 '23 10:05 monika-rudko

@monika-rudko it seems that you override the HTTP Proxy on your Android Emulator, but didn't revert the change. You should open the Certificate menu -> Install for Android -> Emulator

CleanShot 2023-05-11 at 18 53 42@2x

NghiaTranUIT avatar May 11 '23 11:05 NghiaTranUIT

@NghiaTranUIT the problem with the internet is on the real device, not the emulator. I have not used the real device for any development, I just plugged it to my laptop with an usb cable and now I do not have internet (WiFi or data) on the real device unless Proxyman is opened.

monika-rudko avatar May 11 '23 11:05 monika-rudko

It's odd. Proxyman isn't capable of changing your Android device.

Can you get your Android device -> Setting app -> Wifi -> Your current WIfi -> Edit -> Check the HTTP Proxy Config, set it's OFF if it's possible?

NghiaTranUIT avatar May 11 '23 12:05 NghiaTranUIT

This is my Wifi, I am connected to the same wifi from my laptop and everything is working image Proxy config is not set, it's just none. image

I had the same issue on a different Android device (real one) and I did factory reset which helped. But I do not want to do factory reset on this device.

monika-rudko avatar May 11 '23 12:05 monika-rudko

Honestly, I'm not sure how to fix it because it's not a problem from Proxyman. As a said, Proxyman could not change your HTTP Proxy setting on your physical Android device. If your Wifi doesn't have the Proxy config, it seems it's a bug from Android OS @monika-rudko

NghiaTranUIT avatar May 11 '23 14:05 NghiaTranUIT

adb shell settings put global http_proxy :0 fixed the problem. I also rebooted my device with adb shell reboot but it may not be necessary

monika-rudko avatar May 11 '23 16:05 monika-rudko

adb shell settings put global http_proxy :0 fixed the problem. I also rebooted my device with adb shell reboot but it may not be necessary

Yes, those commands worked on my real device.

christian-t-procore avatar May 27 '23 10:05 christian-t-procore